Presentation styles / Style attributes reference |
Common style presentation attributes apply to any graphical element, such as windows, layout containers, or form items.
Attribute | Description | GDC CLIENT | HTML5 CLIENT |
---|---|---|---|
backgroundColor | Defines the color to be used to fill the background of the object. For possible values, see Colors. Default is no value (default color of the object). |
Yes | Yes |
border | Defines the border for the widget. If Value is "none", it removes the border. Default is no value (the widget gets its default appearance). This attribute especially applies to Image, Edit, ButtonEdit, DateEdit, RadioGroup, Group, Button, Action, MenuAction, Menu, and Dialog. As this attribute is supported for the Image widget for the HTML5 theme, it should be considered as supported with limitations. It may not work for all widgets. |
Yes | Yes with limitations |
fontFamily | Defines the name of the font. For possible values, see Font families. Default is no value (default object font or inherited font). |
Yes | Yes |
fontSize | Defines the size of the characters. For possible values, see Font sizes. Default is no value (default object font or inherited font). |
Yes | Yes |
fontStyle | Defines the style of characters. Values can be "normal", "italic" or "oblique". Default is no value (default object font or inherited font). |
Yes | Yes |
fontWeight | Defines the weight of the characters. Values can be "light", "normal", "bold", "demi-bold" or "black". Default is no value (default object font or inherited font). |
Yes | Yes |
imageCache | For form items displaying an image, defines if the image can be cached of not by the front end. If value is "yes" the front-end can cache the image locally. By default, Image for image fields are not cached and image for form items (Button, TopMenu item, Toolbar item) are cached. |
Yes | No |
localAccelerators | For form items using shortcuts, defines how the widget must behave regarding keyboard accelerators. If value is "yes" (default), the local accelerators have higher priority. Ex: "HOME" key moves the cursor to the first position. If value is "no", the application accelerators have higher priority. Ex: "HOME" key selects the first row of the current array. The following keys are managed "locally" if attribute defined to "yes". TEXTEDIT: left, right, up, down, (control+)home, (control+)end, (control+)backspace, (control+)delete EDIT, BUTTONEDIT, DATEEDIT, etc: left, right, home, end, (control+)backspace, (control+)delete TABLE, TREE: (control+)left, (control+)right |
Yes | Yes |
showAcceleratorInToolTip | Defines if the accelerator key(s) for an action should be shown in the tooltip of the corresponding action view (Button, Toolbar Item, and so on.) If value is "yes" the tooltip shows the accelerator key(s) after the action name, between brackets. By default, the tooltip only shows the action name. |
Yes | No |
textColor | Defines 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). |
Yes | Yes |
textDecoration | Defines the decoration for the text. Values can be "overline", "underline" or "line-through". Default is no value (default object font or inherited font). |
Yes | Yes |