10-30-2024 02:20 AM - edited 10-30-2024 02:59 AM
Hi community,
I have some doubt on the tab control part.
Solved! Go to Solution.
10-30-2024 06:05 AM
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.
10-31-2024 11:53 AM
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.
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.