Color settings for all close buttons.
Usage
Set_Property(OLECtrlEntID, "OLE.CloseButtonColors", Array)
Values
Array has the following structure:
Pos | Name | Type | Description | Default |
---|---|---|---|---|
<1> | Normal State | |||
<1, 1> | Forecolor | Color | The color of the X when the button is in its resting state | RGB(128, 128, 128) |
<1, 2> | Background | Color Fill | The background color when the button is in its resting state | None |
<2> | Hot State | |||
<2, 1> | Forecolor | Color | The color of the X when the mouse is over the button | RGB(255, 255, 255) |
<2, 2> | Background | Color Fill | The backgroud color when the mouse is over the button | Vertical(Gradient(Red, Red), Border(Red L-=10), Rounded(2)) |
<3> | Pressed State | |||
<3, 1> | Forecolor | Color | The color of the X when the button is down | RGB(255, 255, 255) |
<3, 2> | Background | Color Fill | The background color when the button is down | Vertical(Gradient(Red L-=10, Red L-=10), Border(Red L-=10), Rounded(2)) |
Remarks
The CloseButtonColors property establishes the colors of all close buttons.
Example
// Make the buttons white on gray Colors = "" Colors<1, 1> = "White" Colors<1, 2> = "None" Colors<2, 1> = "White" Colors<2, 2> = "Gray" Colors<3, 1> = "White" Colors<3, 2> = "DarkGray" Set_Property(@Window:".OLE_TREE", "OLE.CloseButtonColors", Colors)
See Also
CloseButtonBehavior, CloseButtonConditions, ItemCloseButton, and DefCloseButton