Difference between revisions of "Color Constants / Color Forms / Controls / Transparency VB6"
From Free Knowledge Base- The DUCK Project: information for everyone
(New page: {| border="1" frame="below" rules="rows" cellpadding="5" frame="below" rules="rows" | '''VBA Constant''' | '''SystemColors''' | '''Hex Value''' | '''Long Value''' | '''Description''' |- | ...) |
|||
Line 1: | Line 1: | ||
+ | == Table == | ||
+ | |||
{| border="1" frame="below" rules="rows" cellpadding="5" frame="below" rules="rows" | {| border="1" frame="below" rules="rows" cellpadding="5" frame="below" rules="rows" | ||
| '''VBA Constant''' | | '''VBA Constant''' | ||
Line 162: | Line 164: | ||
| Color of text in windows | | Color of text in windows | ||
|} | |} | ||
+ | |||
+ | | ||
+ | |||
+ | == Examples == | ||
+ | |||
+ | txtCon(cnt).BackColor = vbHighlightText | ||
| |
Revision as of 20:33, 21 January 2008
Table
VBA Constant | SystemColors | Hex Value | Long Value | Description |
vb3DDKShadow | ControlDarkDark | &H80000015 | -2147483627 | Darkest shadow color for 3-D display elements |
vb3DHighlight | ControlLightLight | &H80000014 | -2147483628 | Highlight color for 3-D display elements |
vb3DLight | ControlLight | &H80000016 | -2147483626 | Second lightest 3-D color after vb3DHighlight |
vb3DShadow | ControlDark | &H80000010 | -2147483632 | Lightest shadow color for 3-D display elements |
vbActiveBorder | ActiveBorder | &H8000000A | -2147483638 | Border color of active window |
vbActiveTitleBar | ActiveCaption | &H80000002 | -2147483646 | Color of the title bar for the active window |
vbApplicationWorkspace | AppWorkspace | &H8000000C | -2147483636 | Background color of multiple document interface (MDI) applications |
vbButtonFace (vb3DFace) | Control | &H8000000F | -2147483633 | Color of shading on the face of command buttons |
vbButtonShadow (vb3DShadow) | ControlDark | &H80000010 | -2147483632 | Color of shading on the edge of command buttons |
vbButtonText | ControlText | &H80000012 | -2147483630 | Text color on push buttons |
vbDesktop | Desktop | &H80000001 | -2147483647 | Desktop color |
vbGrayText | GrayText | &H80000011 | -2147483631 | Grayed (disabled) text |
vbHighlight | Highlight | &H8000000D | -2147483635 | Background color of items selected in a control |
vbHighlightText | HighlightText | &H8000000E | -2147483634 | Text color of items selected in a control |
vbInactiveBorder | InactiveBorder | &H8000000B | -2147483637 | Border color of inactive window |
vbInactiveCaptionText | InactiveCaptionText | &H80000013 | -2147483629 | Color of text in an inactive caption |
vbInactiveTitleBar | InactiveCaption | &H80000003 | -2147483645 | Color of the title bar for the inactive window |
vbInfoBackground(vbMsgBoxText) | Info | &H80000018 | -2147483624 | Background color of ToolTips |
vbInfoText(vbMsgBox) | InfoText | &H80000017 | -2147483625 | Color of text in ToolTips |
vbMenuBar | Menu | &H80000004 | -2147483644 | Menu background color |
vbMenuText | MenuText | &H80000007 | -2147483641 | Color of text on menus |
vbScrollBars | ScrollBar | &H80000000 | -2147483648 | Scrollbar color |
vbTitleBarText | ActiveCaptionText | &H80000009 | -2147483639 | Color of text in caption, size box, and scroll arrow |
vbWindowBackground | Window | &H80000005 | -2147483643 | Window background color |
vbWindowFrame | WindowFrame | &H80000006 | -2147483642 | Window frame color |
vbWindowText | WindowText | &H80000008 | -2147483640 | Color of text in windows |
Examples
txtCon(cnt).BackColor = vbHighlightText