LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Set color of the tab label text

Hello ,


Can set the color of the tab label text ? Because of each default font color is black , hope can modify it, thanks.


David
0 Kudos
Message 1 of 5
(4,043 Views)
Use EasyTab_SetAttribute to set ATTR_EASY_TAB_LABEL_COLOR or ATTR_EASY_TAB_BG_COLOR.
Look at the sample project ...\CVI\samples\userint\custctrl\easytab\tabdemo.prj. When you run it and right-click on any tab, you can change the tab properties, including font color. In the demo, right-click >> Properties >> Font >> Label Color changes the color of all tabs on the tab control. Right-click >> Properties >> Tab Attributes >> Label BG Color changes the color only for the background of the selected tab.
0 Kudos
Message 2 of 5
(4,030 Views)
Hello David,

Currently, I have not found a way to set the label text color on a Easy Tab control. The 5 attributes you can set for a tab of a tab control are Tab Visible, Tab Dimmed, Tab Label Text, Tab Label Background Color, and Tab Color.

If you are want to highlight a tab when it is active, you might consider either dimming all the other tabs so that the active one stand out, or changing the background color of the active tab.

I hope this helps.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 3 of 5
(4,029 Views)
Hello David,

Correction to my previous post: As Al S said, you can change the font color for all the tabs by creating a metafont, but this technique does not allow you to specify different font colors for each tab.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 4 of 5
(4,028 Views)
Thanks Wendy and AI S.


David
0 Kudos
Message 5 of 5
(4,020 Views)