FOCUSSTYLES property (System)
Description
Specifies the global style information for edit-type controls. When an edit-type control (EDITLINE, EDITBOX and EDITTABLE) receives focus the styles in this property are applied to help give a better visual indication to the user of where the focus is.
Property Value
This property is an @fm-delimited array containing the style information:
<1> FocusBackcolor
<2> FocusTextColor
<3> CellFocusRectColor
<4> CellFocusRectStyle
<5> CellFocusRectWeight
Attribute | Description |
---|---|
FocusBackColor | This color is applied to the focus control’s background, or the background of the current cell in an EditTable control. |
FocusTextColor | This color is applied to the focus control’s text, or the text of the current cell in an EditTable control. |
CellFocusRectColor | This color is applied to the focus rectangle drawn around the current cell in an EditTable control. |
CellFocusRectStyle | This attribute specifies the style of the focus rectangle drawn around the current cell in an EditTable control. It can be one of the following values: · 0 (Dotted) · 1 (Solid) |
CellFocusRectWeight | Specifies the thickness of the style of the focus rectangle drawn around the current cell in an EditTable control. It is an integer value between 1 and 3 inclusive, or -1 to specify the system default value. |
Property Traits
Development | Runtime | Indexed | Scaled | Synthetic |
---|---|---|---|---|
N/A | Get/Set | No | No | No |
Remarks
In the current version of the Presentation Server this property only affects EDITTABLE controls, it does not affect EDITLINE or EDITBOX controls yet.
Example
//// Example: get the current styles and update// $Insert PS_System_Equates $Insert Colors FocusStyles = Get_Property( "SYSTEM", "FOCUSSTYLES" ) //// Set the background color to yellow, and the focus rect// //// to Red, and ensure we are using a solid rect style so // //// we see the color.// FocusStyles<PS_FS_POS_BKCOLOR$> = YELLOW$ FocusStyles<PS_FS_POS_FGCOLOR$> = CLR_USEDEFAULT$ FocusStyles<PS_FS_POS_CELLRECTCOLOR$> = RED$ FocusStyles<PS_FS_POS_CELLRECTSTYLE$> = PS_FS_CELLRECTSTYLE_SOLID$ FocusStyles<PS_FS_POS_CELLRECTWEIGHT$> = PS_FS_POS_CELLRECTWEIGHT_DFLT$ Call Set_Property_Only( "SYSTEM", "FOCUSSTYLES", FocusStyles )
See Also
BACKCOLOR property, FOCUS property, FORECOLOR property, SYSTEM FOCUS property, EDITTABLE FOCUSCELLCOLOR property FOCUSRECTCOLOR property, EDITTABLE FOCUSRECTSTYLE property, FOCUSRECTWEIGHT property, EDITTABLE CellStyle properties.