|
SmartMenuXP
Reference
Returns or sets the background color of both the menu bar and picture
area.
Syntax
object.BackColor [= color]
The BackColor property syntax has these parts:
| Part |
Description |
| object |
An object expression that evaluates to a SmartMenuXP object. |
| color |
A value or constant that determines the background color of
an object as described in Settings. |
Settings
Visual Basic uses the Microsoft Windows operating environment red-green-blue
(RGB) color scheme. The settings for color are:
| Setting |
Description |
| Normal RGB colors |
Colors specified by using the Color palette or by using the
RGB or QBColor functions in code. |
| System default colors |
Colors specified by system color constants listed in the Visual
Basic (VB) object library in the Object Browser. The Windows operating environment
substitutes the user's choices as specified in the Control Panel settings. |
At design time, the default BackColor
for the SmartMenuXP is set to the system default color specified by the constant
vbButtonFace.
Remarks
You can find below a diagram with all the color components of SmartMenuXP:
|
 |
|
|
| 1. ArrowColor |
| 2. BackColor |
| 3. CheckBackColor |
| 4. CheckBoxColor |
| 5. CheckMarkColor |
| 6. DisabledColor |
| 7. FontBackColor |
| 8. FontForeColor |
| 9. SelBackColor |
| A. SelForeColor |
| B. SelBoxColor |
| C. SeparatorColor |
The valid range for a normal RGB color is 0 to 16,777,215 (&HFFFFFF). The
high byte of a number in this range equals 0; the lower 3 bytes, from least
to most significant byte, determine the amount of red, green, and blue, respectively.
The red, green, and blue components are each represented by a number between
0 and 255 (&HFF). If the high byte isn't 0, Visual Basic uses the system
colors, as defined in the user's Control Panel settings and by constants listed
in the Visual Basic (VB) object library in the Object Browser.
|