SetSpecialColor Method
Description
Used to change the color of the various components that make up the command bars.
Syntax
Public Sub SetSpecialColor( _
ByVal [Index](#) As [XTPColorManagerColor](XtremeCalendarControl~Enumerations~XTPColorManagerColor_EN.md), _
ByVal [Color](#) As ULong _
)
Parameters
Index
| Value | Description |
|---|---|
| STDCOLOR_BACKGROUND | Desktop color. |
| STDCOLOR_ACTIVECAPTION | Color of the title bar for the active window; specifies the left side color in the color gradient of an active window's title bar if the gradient effect is enabled. |
| STDCOLOR_INACTIVECAPTION | Color of the title bar for the inactive window; specifies the left side color in the color gradient of an inactive window's title bar if the gradient effect is enabled. |
| STDCOLOR_MENU | Menu background color. |
| STDCOLOR_WINDOW | Window background color. |
| STDCOLOR_WINDOWFRAME | Window frame color. |
| STDCOLOR_MENUTEXT | Color of text on menus. |
| STDCOLOR_WINDOWTEXT | Color of text in windows. |
| STDCOLOR_CAPTIONTEXT | Color of text in caption, size box, and scroll arrow. |
| STDCOLOR_ACTIVEBORDER | Border color of active window. |
| STDCOLOR_INACTIVEBORDER | Border color of inactive window. |
| STDCOLOR_APPWORKSPACE | Background color of multiple-document interface (MDI) applications. |
| STDCOLOR_HIGHLIGHT | Background color of items selected in a control. |
| STDCOLOR_HIGHLIGHTTEXT | Text color of items selected in a control. |
| STDCOLOR_BTNFACE | Face color for three-dimensional display elements and for dialog box backgrounds. |
| STDCOLOR_BTNSHADOW | Color of shading on the edge of command buttons. |
| STDCOLOR_GRAYTEXT | Grayed (disabled) text. |
| STDCOLOR_BTNTEXT | Text color on push buttons. |
| STDCOLOR_INACTIVECAPTIONTEXT | Color of text in an inactive caption. |
| STDCOLOR_BTNHIGHLIGHT | Highlight color for 3-D display elements. |
| STDCOLOR_3DDKSHADOW | Darkest shadow color for 3-D display elements. |
| STDCOLOR_3DLIGHT | Second lightest 3-D color after 3DHighlight; light color for three-dimensional display elements (for edges facing the light source). |
| STDCOLOR_INFOTEXT | Color of text in ToolTips. |
| STDCOLOR_INFOBK | Background color of ToolTips. |
| STDCOLOR_HOTLIGHT | Color for a hot-tracked item; single clicking a hot-tracked item executes the item. |
| STDCOLOR_GRADIENTACTIVECAPTION | Right side color in the color gradient of an active window's title bar; COLOR_ACTIVECAPTION specifies the left side color. |
| STDCOLOR_GRADIENTINACTIVECAPTION | Right side color in the color gradient of an inactive window's title bar; COLOR_INACTIVECAPTION specifies the left side color. |
| XPCOLOR_TOOLBAR_FACE | XP toolbar background color. |
| XPCOLOR_HIGHLIGHT | XP menu item selected color. |
| XPCOLOR_HIGHLIGHT_BORDER | XP menu item selected border color. |
| XPCOLOR_HIGHLIGHT_PUSHED | XP menu item pushed color. |
| XPCOLOR_HIGHLIGHT_CHECKED | XP menu item checked color. |
| XPCOLOR_HIGHLIGHT_CHECKED_BORDER | An RGB value that represents the XP menu item checked border color. |
| XPCOLOR_ICONSHADDOW | XP menu item icon shadow. |
| XPCOLOR_GRAYTEXT | XP menu item disabled text color. |
| XPCOLOR_TOOLBAR_GRIPPER | XP toolbar gripper color. |
| XPCOLOR_SEPARATOR | XP toolbar separator color. |
| XPCOLOR_DISABLED | XP menu icon disabled color. |
| XPCOLOR_MENUBAR_FACE | XP menu item text background color. |
| XPCOLOR_MENUBAR_EXPANDED | XP hidden menu commands background color. |
| XPCOLOR_MENUBAR_BORDER | XP menu border color. |
| XPCOLOR_MENUBAR_TEXT | XP menu item text color. |
| XPCOLOR_HIGHLIGHT_TEXT | XP menu item selected text color. |
| XPCOLOR_TOOLBAR_TEXT | XP toolbar text color. |
| XPCOLOR_PUSHED_TEXT | XP toolbar pushed text color. |
| XPCOLOR_TAB_INACTIVE_BACK | XP inactive tab background color. |
| XPCOLOR_TAB_INACTIVE_TEXT | XP inactive tab text color. |
| XPCOLOR_HIGHLIGHT_PUSHED_BORDER | An RGB value that represents the XP border color for pushed in 3D elements. |
| XPCOLOR_3DFACE | XP face color for three-dimensional display elements and for dialog box backgrounds. |
| XPCOLOR_3DSHADOW | XP shadow color for three-dimensional display elements (for edges facing away from the light source). |
| XPCOLOR_FRAME | Office 2003 frame color. |
| XPCOLOR_SPLITTER_FACE | XP splitter face color. |
| XPCOLOR_LABEL | Color for Command Bars label control. |
| XPCOLOR_STATICFRAME | WinXP Static frame color. |
Color
New color for component.
Remarks
LunaColors may need to be disabled to see the effects. Can be used to create custom themes.
Example
This sample illustrates how to create a custom theme for your command bars.
CommandBars.VisualTheme = xtpThemeOffice2003
CommandBars.SetSpecialColor XPCOLOR_TOOLBAR_FACE, CommandBars.GetSpecialColor(2)
CommandBars.SetSpecialColor 15, CommandBars.GetSpecialColor(2)
CommandBars.SetSpecialColor 5, CommandBars.GetSpecialColor(27)
CommandBars.SetSpecialColor 5, vbYellow
CommandBars.SetSpecialColor XPCOLOR_HIGHLIGHT, CommandBars.GetSpecialColor(27)
CommandBars.Options.LunaColors = False
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.