guides:oi10:presentation_server:focusstyles_property_system

FOCUSSTYLES property (System)

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.

This property is an @fm-delimited array containing the style information:

<1> FocusBackcolor

<2> FocusTextColor

<3> CellFocusRectColor

<4> CellFocusRectStyle

<5> CellFocusRectWeight

AttributeDescription
FocusBackColorThis color is applied to the focus control’s background, or the background of the current cell in an EditTable control.
FocusTextColorThis color is applied to the focus control’s text, or the text of the current cell in an EditTable control.
CellFocusRectColorThis color is applied to the focus rectangle drawn around the current cell in an EditTable control.
CellFocusRectStyleThis 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)
CellFocusRectWeightSpecifies 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.
DevelopmentRuntimeIndexedScaledSynthetic
N/AGet/SetNoNoNo

In the current version of the Presentation Server this property only affects EDITTABLE controls, it does not affect EDITLINE or EDITBOX controls yet.

 
//// 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 )
 
 
 

BACKCOLOR property, FOCUS property, FORECOLOR property, SYSTEM FOCUS property, EDITTABLE FOCUSCELLCOLOR property FOCUSRECTCOLOR property, EDITTABLE FOCUSRECTSTYLE property, FOCUSRECTWEIGHT property, EDITTABLE CellStyle properties.

  • guides/oi10/presentation_server/focusstyles_property_system.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1