Skip to content

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

If CommandBars.TabWorkspace.AutoTheme = True, then the ColorSet of the TabWorkspace must be updated to override the default colorset for the currently used theme. If AutoTheme = False, then the ColorSet can be modified a single time, but the Color and Appearance properties will need to be set to achieve the desired look and feel that AutoTheme would have provided.

Example

Changing the color set for tab appearances. This sample illustrates how to change the colors used for each tab color set.

'If CommandBars.TabWorkspace.AutoTheme = True, then the ColorSet of the TabWorkspace must be updated to override the 
'default colorset for the currently used theme. If AutoTheme = False, then the ColorSet can be modified a single time but 
'the Color and Appearance properties will need to be set to set the desired look and feel that AutoTheme would have provided.  

Private Sub CommandBars_Update(ByVal Control As XtremeCommandBars.ICommandBarControl)  

    'Color properties common to all tab appearances  
    CommandBars.TabWorkspace.PaintManager.ColorSet.NormalText = RGB(0, 50, 150)  
    CommandBars.TabWorkspace.PaintManager.ColorSet.FrameBorder = RGB(255, 0, 0)  
    CommandBars.TabWorkspace.PaintManager.ColorSet.HeaderFaceDark = RGB(0, 0, 255)  
    CommandBars.TabWorkspace.PaintManager.ColorSet.HeaderFaceLight = RGB(0, 0, 100)  
    CommandBars.TabWorkspace.PaintManager.ColorSet.SelectedText = RGB(0, 0, 255)  

    'Color properties specific to the Office 2003 theme and PropertyPage2003 appearance.  
    CommandBars.TabWorkspace.PaintManager.ColorSet.TabPropertyPage2003BorderLeftHighlight = RGB(255, 0, 0)  
    CommandBars.TabWorkspace.PaintManager.ColorSet.TabPropertyPage2003BorderTopHighlight = RGB(255, 0, 0)  
    CommandBars.TabWorkspace.PaintManager.ColorSet.TabPropertyPage2003DarkShadow = RGB(255, 0, 0)  
    CommandBars.TabWorkspace.PaintManager.ColorSet.TabPropertyPage2003FrameBorder = RGB(0, 0, 0)  

End Sub

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.