Reference > Effect Object > Effect Object Properties > BevelLight Property (Effect) |
BevelLight Property (Effect)
The BevelLight property calculates the 3D light area color by percentage based on the color specified in the BackColor property.
object.BevelLight= integer
Read/Write at run time. Not available at design time.
-100 ~ 100 (25 is the default)
When set to 0, the same color as the background color is used. When a positive value is set, a color brighter, and when a negative value is set, a color darker than the background color will take effect.
Given a BackColor of &HC0C0C0 (RGB(192, 192, 192)), the bevel's light color is calculated as follows:
BevelLight Calculation Color used
---------- ----------- ----------
0 192 + (192 * 0 / 100) RGB(192,192,192)
25 192 + (192 * 25 / 100) RGB(240,240,240)
-25 192 + (192 * -25 / 100) RGB(144,144,144)
This property can be used with the BevelShade property to make detailed adjustments to the brightness of the bevel color.
The BevelLight property will usually be set to a positive value, since 3D light colors are lighter than the background color.
See Also