DarkTingeColor

From Xojo Documentation
Jump to: navigation, search
Method

The currently selected color for drawing dark lines inside frames on the bottom and right sides.

Syntax

result=DarkTingeColor

Part Type Description
result Color The color used for drawing the dark lines inside frames on the bottom and right.

Notes

This value is useful when you are using Canvas controls to create custom controls. When drawing beveled objects, use this color for the dark portions of the object (usually the right and bottom sides of the object). In a Checkbox control, this color is used to draw the dark lines that give it the beveled appearance just inside the checkbox on the right and bottom 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.

Example

The following example uses the DarkTingeColor to shade the bottom and right sides of the rectangle.

Const White = &cffffff
g.ForeColor = White
g.DrawLine(1, 1, Canvas1.Width, 1)
g.DrawLine(1, Canvas1.Height - 1, 1, 1)
g.ForeColor = DarkTingeColor
g.DrawLine(Canvas1.Width - 1, 2, Canvas1.Width - 1, Canvas1.Height)
g.DrawLine(1, Canvas1.Height - 1, Canvas1.Width, Canvas1.Height - 1)
// fill in the light gray rectangle
g.ForeColor = LightTingeColor
g.FillRect(2, 2, Canvas1.Width - 3, Canvas1.Height - 3)

See Also

DarkBevelColor, DisabledTextColor, FillColor, FrameColor, HighlightColor, LightBevelColor, LightTingeColor, TextColor functions.

Personal tools
Namespaces

Variants
Actions
Main
Content
Starting Out
Dig Deeper
More Help
Toolbox
About