04-22-2006 07:36 PM
04-22-2006 09:54 PM
The function you are looking for is SetTabPageAttribute. The relevant attribute is ATTR_BACKCOLOR.
Hope this helps,
-alex
04-23-2006 12:13 PM
Thank you Alex.
The documentation appears to be incorrect, does not describe SetTabPageAttribute:
You can use SetCtrlAttribute to customize the appearance of the tab control.
By default, tabs appear in the top left corner of the tab control. You can configure them to appear in the top right, bottom left, or bottom right corners. When you place the tabs in these locations, the text is horizontal. You also can configure the tabs to appear on the right or left side of the tab control at the top or bottom of the tab. When you place the tabs in these locations, the text is vertical. Use the ATTR_TABS_LOCATION attribute to configure the location of the tabs.
Use the ATTR_TABS_FIT_MODE to customize how the tabs appear on the tab control. By default, the tabs appear in a single row aligned to the left, right, top, or bottom side of the tab. You can specify that the tabs appear in a single justified row, in a single row with a scroll button to view tabs that do not fit across the tab control, or in multiple rows.
04-23-2006 06:43 PM
Hi.
The function you need is EasyTab_SetTabAttribute(int Panel, int Tab_Control, int Tab_PanelHandle, int Attribute, ...);
The attribute is ATTR_EASY_TAB_LABEL_BG_COLOR (label background color).
You're right; this function is not properly documented (at least in CVI v7.1.1), but you will find it if you open the instument (easytab.fp).
Good luck,
Colin.
04-24-2006 10:52 AM
04-25-2006 05:32 PM
Sorry about that, Alex.
I think I'd better upgrade soon (before CVI 9 comes out ;)).
Regards,
Colin.