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 Color or Appearance is applied, the color settings will be updated with the colors for the selected Color and Appearance. When the Color and Appearance are changed, the members of ColorSet must be updated to show the custom colors.
Example
Changing the color set for tab appearances (Visual Basic)
This sample illustrates how to change the colors used for each tab color set.
' Color properties common to all tab appearances
wndTabControl.PaintManager.ColorSet.NormalText = RGB(0, 50, 150)
wndTabControl.PaintManager.ColorSet.FrameBorder = RGB(255, 0, 0)
wndTabControl.PaintManager.ColorSet.HeaderFaceDark = RGB(0, 0, 255)
wndTabControl.PaintManager.ColorSet.HeaderFaceLight = RGB(0, 0, 100)
wndTabControl.PaintManager.ColorSet.SelectedText = RGB(0, 0, 255)
' Color properties specific to the Office 2003 theme and PropertyPage2003 appearance.
wndTabControl.PaintManager.ColorSet.TabPropertyPage2003BorderLeftHighlight = RGB(255, 0, 0)
wndTabControl.PaintManager.ColorSet.TabPropertyPage2003BorderTopHighlight = RGB(255, 0, 0)
wndTabControl.PaintManager.ColorSet.TabPropertyPage2003DarkShadow = RGB(255, 0, 0)
wndTabControl.PaintManager.ColorSet.TabPropertyPage2003FrameBorder = RGB(0, 0, 0)
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.