LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Highlight the page name of the manually selected page of the tab control

Solved!
Go to solution

Hi community,

 

I have some doubt on the tab control part.

how to highlight the page name of manually selected page of the tab control.
 
Thanks
0 Kudos
Message 1 of 3
(178 Views)

Hello,

you could color the active page different from the others in the "Value Changed"- event. You have to allow Multiple Colors on the Tab Control.

 

Multiple-Colors TabCtrl.png  Multiple-Colors TabCtrl (FP).png

Greets, Dave
0 Kudos
Message 2 of 3
(118 Views)
Solution
Accepted by topic author Altenite09

You can use a Radio Button control to select Tabs. Both controls (Tabs and RBs) use an enum for selection.

If you make the Radio Button control names match the Tab names, a Radio Button can directly control a Tab.
See attached example (2018). Note: Names, order, and # of items must match exactly.

TR FP.pngTR BD.png

 

To create a customized Radio Button:


- Select a Radio Button from the Classic Boolean Palette
- Replace the first control with a Flat Square Button (Classic Palette)
- Modify the Boolean Text and Label to match the first Tab.
  (If Boolean Text is not visible: Right-Click >> Visible Items >> Boolean Text)
- Size and color the Flat Square Button to taste. The "Off" colors should all be the same but the "ON" colors
   can be different.
- Copy (Ctrl-drag) the newly modified button and change the Text and Label
- Continue until all Tabs are represented.
- Delete any left over original button(s).

 

Note: You can use other buttons - for example: System buttons give hover effect but no color options.

 

Any change to the Tab control will require the same change to the Radio Buttons.
Changes will also break the enum initialization constant in the example program.
Right Click the Tab control terminal and select Create Local Variable to get a new enum.

--------------------------------------------------------------------------------------------------------------------------
Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
question. Give "Kudos" to replies that help.
--------------------------------------------------------------------------------------------------------------------------
Message 3 of 3
(78 Views)