Skip to content

SystemColorConstants

Reference values for system palette entries --- the colours the user has chosen for various standard parts of the Windows UI. Values have the high bit set so that the runtime can distinguish them from RGB colours; pass them through TranslateColor to obtain a plain RGB value.

ConstantValueDescription
vbScrollBars&H80000000Scroll-bar colour.
vbDesktop&H80000001Desktop colour.
vbActiveTitleBar&H80000002Active window's title-bar colour.
vbInactiveTitleBar&H80000003Inactive window's title-bar colour.
vbMenuBar&H80000004Menu-bar background.
vbWindowBackground&H80000005Window background (typically white in the classic palette).
vbWindowFrame&H80000006Window frame.
vbMenuText&H80000007Menu text colour.
vbWindowText&H80000008Window text colour.
vbTitleBarText&H80000009Active window's title-bar text.
vbActiveTitleBarText&H80000009Same as vbTitleBarText.
vbActiveBorder&H8000000AActive window's border colour.
vbInactiveBorder&H8000000BInactive window's border colour.
vbApplicationWorkspace&H8000000CApplication workspace (MDI parent background).
vbHighlight&H8000000DHighlighted item background (selection colour).
vbHighlightText&H8000000EHighlighted item text.
vbButtonFace&H8000000FButton face.
vb3DFace&H8000000FSame as vbButtonFace.
vbButtonShadow&H80000010Button shadow (the shaded edge).
vb3Dshadow&H80000010Same as vbButtonShadow.
vbGrayText&H80000011Disabled (grayed) text.
vbButtonText&H80000012Button text.
vbInactiveCaptionText&H80000013Inactive window's title-bar text.
vbInactiveTitleBarText&H80000013Same as vbInactiveCaptionText.
vb3DHighlight&H800000143-D highlight (the bright edge).
vb3DDKShadow&H800000153-D dark shadow.
vb3DLight&H800000163-D light edge.
vbInfoText&H80000017Tool-tip text colour.
vbInfoBackground&H80000018Tool-tip background colour.
vbHotTrackText&H8000001AHot-tracked item text.
vbActiveTitleBarGradient&H8000001BActive title-bar gradient end colour.
vbInactiveTitleBarGradient&H8000001CInactive title-bar gradient end colour.
vbMenuHighlight&H8000001DMenu-item highlight (hover) colour.
vbMenuBarFlat&H8000001EFlat-style menu-bar background.

twinBASIC and LOGO copyright of "WaynePhillipsEA" author