ColorSet Property
Description
The ColorSet stores the colors used to paint the tabs. The default tab colors for each theme can be changed using the ColorSet property.
Property Type
Read-only property
Syntax (Visual Basic)
Public Property ColorSet() As [TabPaintManagerColorSet](XtremeCommandBars~TabPaintManagerColorSet.md)
Remarks
Each time a VisualTheme is applied, the color settings will be updated with the colors for the selected theme. If the theme is changed, the members of ColorSet must be updated to show the custom colors. The Color and Appearance properties can be used to mix appearances and colors.
Example
This sample illustrates how to change the colors used for each tab color set.
' Color properties common to all tab appearances
DockingPaneManager.TabPaintManager.ColorSet.NormalText = RGB(0, 50, 150)
DockingPaneManager.TabPaintManager.ColorSet.FrameBorder = RGB(255, 0, 0)
DockingPaneManager.TabPaintManager.ColorSet.HeaderFaceDark = RGB(0, 0, 255)
DockingPaneManager.TabPaintManager.ColorSet.HeaderFaceLight = RGB(0, 0, 100)
DockingPaneManager.TabPaintManager.ColorSet.SelectedText = RGB(0, 0, 255)
' Color properties specific to the Office 2003 theme and PropertyPage2003 appearance.
DockingPaneManager.TabPaintManager.ColorSet.TabPropertyPage2003BorderLeftHighlight = RGB(255, 0, 0)
DockingPaneManager.TabPaintManager.ColorSet.TabPropertyPage2003BorderTopHighlight = RGB(255, 0, 0)
DockingPaneManager.TabPaintManager.ColorSet.TabPropertyPage2003DarkShadow = RGB(255, 0, 0)
DockingPaneManager.TabPaintManager.ColorSet.TabPropertyPage2003FrameBorder = RGB(0, 0, 0)
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.