0% found this document useful (0 votes)
62 views2 pages

Color Constants

The document defines constants and values for different colors used in visual elements like windows, menus, buttons, and tooltips. It includes 16 basic colors like black, red, green, yellow, blue, magenta, cyan, and white. It also defines constants and values for 23 system colors used for elements like scroll bars, window backgrounds, menu text, highlighted text, button faces, and more. The system colors allow specifying colors for standard interface elements in a consistent way across an operating system or application.

Uploaded by

Yopie Sofianto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views2 pages

Color Constants

The document defines constants and values for different colors used in visual elements like windows, menus, buttons, and tooltips. It includes 16 basic colors like black, red, green, yellow, blue, magenta, cyan, and white. It also defines constants and values for 23 system colors used for elements like scroll bars, window backgrounds, menu text, highlighted text, button faces, and more. The system colors allow specifying colors for standard interface elements in a consistent way across an operating system or application.

Uploaded by

Yopie Sofianto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Color Constants

Colors
Constant
vbBlack
vbRed
vbGreen
vbYellow
vbBlue
vbMagenta
vbCyan
vbWhite

Value
&H0
&HFF
&HFF00
&HFFFF
&HFF0000
&HFF00FF
&HFFFF00
&HFFFFFF

Description
Black
Red
Green
Yellow
Blue
Magenta
Cyan
White

Constant
vbScrollBars
vbDesktop
vbActiveTitleBar

Value
&H80000000
&H80000001
&H80000002

vbInactiveTitleBar

&H80000003

vbMenuBar
vbWindowBackground
vbWindowFrame
vbMenuText
vbWindowText
vbTitleBarText

&H80000004
&H80000005
&H80000006
&H80000007
&H80000008
&H80000009

vbActiveBorder

&H8000000A

vbInactiveBorder

&H8000000B

vbApplicationWorkspace

&H8000000C

vbHighlight

&H8000000D

vbHighlightText

&H8000000E

vbButtonFace

&H8000000F

vbButtonShadow

&H80000010

vbGrayText

&H80000011

Description
Scroll bar color
Desktop color
Color of the title bar for the
active window
Color of the title bar for the
inactive window
Menu background color
Window background color
Window frame color
Color of text on menus
Color of text in windows
Color of text in caption,
size box, and scroll arrow
Border color of active
window
Border color of inactive
window
Background color of
multiple-document
interface (MDI) applications
Background color of items
selected in a control
Text color of items
selected in a control
Color of shading on the
face of command buttons
Color of shading on the
edge of command buttons
Grayed (disabled) text

System Colors

vbButtonText
vbInactiveCaptionText

&H80000012
&H80000013

vb3DHighlight

&H80000014

vb3DDKShadow

&H80000015

vb3DLight

&H80000016

vb3DFace
vb3Dshadow
vbInfoText
vbInfoBackground

&H8000000F
&H80000010
&H80000017
&H80000018

Text color on push buttons


Color of text in an inactive
caption
Highlight color for 3D
display elements
Darkest shadow color for
3D display elements
Second lightest of the 3D
colors after vb3Dhighlight
Color of text face
Color of text shadow
Color of text in ToolTips
Background color of
ToolTips

You might also like