Color settings for all close buttons.

Usage

Set_Property(OLECtrlEntID, "OLE.CloseButtonColors", Array)

Values

Array has the following structure:

PosNameTypeDescriptionDefault
<1>
Normal State
 <1, 1>
ForecolorColorThe color of the X when the button is in its resting stateRGB(128, 128, 128)
 <1, 2>
BackgroundColor FillThe background color when the button is in its resting stateNone
<2>
Hot State
 <2, 1>
ForecolorColorThe color of the X when the mouse is over the buttonRGB(255, 255, 255)
 <2, 2>
BackgroundColor FillThe backgroud color when the mouse is over the buttonVertical(Gradient(Red, Red), Border(Red L-=10), Rounded(2))
<3>
Pressed State
 <3, 1>
ForecolorColorThe color of the X when the button is downRGB(255, 255, 255)
 <3, 2>
BackgroundColor FillThe background color when the button is downVertical(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

  • No labels