HighlightColor

From Xojo Documentation
Jump to: navigation, search
Method

Returns the operating system’s highlight color.


Syntax

result=HighlightColor

Part Type Description
result Color The user’s chosen highlight color.

Notes

On Windows, the highlight color can be modified via the Display Control Panel. In Mac OS X, the highlight color is set in the General System Preferences panel. On Linux, the highlight color is affected by the user's Window Manager and themes.

Example

The following example uses the system highlight color to fill in a rectangle. The code is in the Paint event of a Canvas.

Const White = &cffffff

g.forecolor=White
g.drawline 1,1,canvas1.width,1
g.drawline 1,canvas1.height-1,1,1
g.forecolor=DarkBevelColor
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 rectangle
g.forecolor=HighlightColor
g.fillrect 2,2,canvas1.width-3,canvas1.height-3

See Also

DarkBevelColor, DarkTingeColor, DisabledTextColor, FillColor, FrameColor, LightBevelColor, LightTingeColor, TextColor functions; Color data type.

Personal tools
Namespaces

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