User Tools

Site Tools


prop_tabbarcolor.htm
Navigation:  Language Reference > App C - PROP: Runtime Properties > Complete Property List >====== PROP:TabBarColor ====== Previous pageReturn to chapter overviewNext page

FrameWindow{PROP:TabBarColor, index} = color

color = FrameWindow{PROP:TabBarColor, n}

PROP:TabBarColor is used to set the background color for the MDI tab created for target MDI Child windows.

FrameWindow is the label of the Parent APPLICATION structure

Index must be an integer number from 1-8. An index value of 1 sets or gets the background color of the Tab Bar (the default value is the COLOR_3DFACE system color). Other index values (2-8) are used for tab colors used on the tabs of subsequent MDI child windows.

This property is valid for MDI frame windows only. PROP:TabBarVisible must be set to TRUE for the frame; otherwise the PROP:TabBarColor property has no effect. Setting PROP:TabBarVisible to FALSE clears all previously set colors. The PROP:TabStyle must also be set to TabStyle:Colored.

Example:

AppFrame{PROP:TabBarLocation} = MDITabLocation:Top

 AppFrame{PROP:TabBarStyle} = TabStyle:Default

 AppFrame{PROP:TabBarVisible}  = True

AppFrame{PROP:TabBarColor,1}  = Color:Blue

 AppFrame{PROP:TabBarColor,2}  = Color:Green

 AppFrame{PROP:TabBarColor,3}  = Color:Red

 AppFrame{PROP:TabBarColor,4}  = Color:Yellow

 AppFrame{PROP:TabBarColor,5}  = Color:Aqua

 AppFrame{PROP:TabBarColor,6}  = Color:Fuchsia

 AppFrame{PROP:TabBarColor,7}  = Color:Teal

 AppFrame{PROP:TabBarColor,8}  = Color:Purple

See Also: PROP:TabBarVisible PROP:TabBarStyle, PROP:TabSheetStyle, PROP:TabBarLocation

prop_tabbarcolor.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1