Common style attributes
Common style presentation attributes apply to any graphical element, such as windows, layout containers, or form items.
| Attribute | GDC | GBC | GMA | GMI |
|---|---|---|---|---|
backgroundColorDefines the color to be used to fill the background of the object. For possible values, see Colors. Default is no value (default background color of
the object, or inherited background color).
Note: To set the background color of GMI/iOS specific GUI
elements like toolbars, tab bars and navigation bars, use the
ios*TintColor
attributes for Windows. |
Yes | Yes | Yes | Yes (see note) |
borderDefines the border for the widget. If value is
Default is no value (the widget gets its default appearance). This attribute especially applies to widgets such as Image, Edit, ButtonEdit, Button. |
Yes | Yes | No | Yes |
fontFamilyDefines the name of the font. For possible values, see Font families. Default is no value (default object font or inherited font). |
Yes | Yes | Yes | Yes |
fontSizeDefines the size of the characters. For possible values, see Font sizes. Default is no value (default object font or inherited font). |
Yes | Yes | Yes | Yes |
fontStyleDefines the style of characters. For possible values, see Font styles. Default is no value (default object font or inherited font). |
Yes | Yes | Yes | Yes |
fontWeightDefines the weight of the characters. Possible values for font weights depend on the front-end native font names, see Font weights for details. Default is no value (default object font or inherited font). |
Yes | Yes | Yes | Yes |
imageCacheFor form items displaying an image, defines if the image can be cached or not by the front end. Values can be If value is |
Yes | No | No | No |
localAcceleratorsFor form items using shortcuts, defines how the widget must behave regarding keyboard accelerators. Values can be If value is Ex: "HOME" key moves the cursor to the first position. If value is
Ex: "HOME" key selects the first row of the current array. The following keys are managed "locally" if the
attribute is defined with
|
Yes | No | No | No |
showAcceleratorInToolTipDefines if the accelerator key(s) for an action is shown in the tooltip of the corresponding action view (Button, Toolbar Item, and so on.) Values can be If value
is |
Yes | No | No | No |
textColorDefines the color to be used to paint the text of the object. For possible values, see Colors. Default is no value (default object color or inherited color).
Note: In GMI,
textColor affects the widgets they are defined on, not the labels in the form used
to display the widgets. It is also used to set the tint of checkbox, radio group (horizontal), and
spin edit. |
Yes | Yes | Yes | Yes (see note) |
textDecorationDefines the decoration for the text. Values can be Default is no value (default object font or inherited font). |
Yes | Yes | No | No |