systemcolor

  • Thread starter Thread starter Amorax
  • Start date Start date
A

Amorax

I have changed the color of my form
But now I want to use the system color, thus the color changes when changing
the Windows colors.
How can I do this?


Richard
 
Amorax said:
I have changed the color of my form
But now I want to use the system color, thus the color changes when changing
the Windows colors.
How can I do this?

There is a Help topic that defines the system colors. The consants are listed
below. I normally use vbButtonFace (-2147483633) for my form backgrounds so
that they are always the same color as CommandButtons and ToggleButtons. To get
the digital value for any constant just type...

?ConstantName <EnterKey>

....into the immediate pane of the debug window.


(Might not be very readable)

Constant Description
vbScrollBars Scroll bar color
vbDesktop Desktop color
vbActiveTitleBar Color of the title bar for the active window
vbInactiveTitleBar Color of the title bar for the inactive window
vbMenuBar Menu background color
vbWindowBackground Window background color
vbWindowFrame Window frame color
vbMenuText Color of text on menus
vbWindowText Color of text in windows
vbTitleBarText Color of text in caption, size box, and scroll arrow
vbActiveBorder Border color of active window
vbInactiveBorder Border color of inactive window
vbApplicationWorkspace Background color of multiple-document interface (MDI)
applications
vbHighlight Background color of items selected in a control
vbHighlightText Text color of items selected in a control
vbButtonFace Color of shading on the face of command buttons
vbButtonShadow Color of shading on the edge of command buttons
vbGrayText Grayed (disabled) text
vbButtonText Text color on push buttons
vbInactiveCaption Text Color of text in an inactive caption
vb3DHighlight Highlight color for 3-D display elements
vb3DDKShadow Darkest shadow color for 3-D display elements
vb3DLight Second lightest 3-D color after vb3DHighlight
vbInfoText Color of text in ToolTips
vbInfoBackground Background color of ToolTips
 
Back
Top