Method
LightTingeColor
Warning
This item was deprecated in version 2019r2. Please use Color.LightTingeColor as a replacement.
Description
The currently selected operating system color for drawing light lines inside frames on the top and left sides.
Usage
result = LightTingeColor
Part |
Type |
Description |
---|---|---|
result |
The color used for drawing the light lines inside frames. |
Notes
Note
This color value does not change when Color.IsDarkMode is True.
This value is useful when you are using Canvas controls to create custom controls. When drawing beveled objects, use this color for the light portions of the object (usually the top and left sides of the object). In a CheckBox control, this color is used to draw the light lines that give it the beveled appearance just inside the checkbox on the top and left sides.
This value can be changed by the user, so you should access this value in the Paint event handler rather than storing the value.
Sample code
The following example uses the LightTingeColor to shade the top and left sides of the rectangle.
Const White = &cffffff
g.ForeColor = White
g.DrawLine(1, 1, g.Width, 1)
g.DrawLine(1, g.Height - 1, 1, 1)
g.ForeColor = DarkBevelColor
g.DrawLine(g.Width - 1, 2, g.Width - 1, g.Height)
g.DrawLine(1, g.Height - 1, g.Width, g.Height - 1)
' fill in the light gray rectangle
g.ForeColor = LightTingeColor
g.FillRect(2, 2, g.Width - 3, g.Height - 3)
Compatibility
All project types on all supported operating systems.
See also
Color.DarkBevelColor, Color.DarkTingeColor, Color.DisabledTextColor, Color.FillColor, Color.FrameColor, Color.LightBevelColor, Color.TextColor functions; Color data type.