Button style attributes
Button presentation style attributes apply to BUTTON
elements.
Attribute | GDC | GBC | GMA | GMI |
---|---|---|---|---|
alignment Defines the position of the image and/or text inside a button, when the button is bigger than the content. The value can be a combination of a vertical and horizontal alignment hints, separated by a space. The value can also be
Vertical alignment hints:
Horizontal alignment hints:
The default is Important: With the GDC front-end, the
alignment style attribute is not
supported for BUTTON elements. However, the content is centered, if there is only a
text or image to be displayed. When both text and image are present, these are left aligned and
vertically centered. |
No (see note) | Yes | Yes | No |
buttonType Defines the rendering of a button. Values can be:
Important: The buttonType Button style attribute cannot be changed
dynamically, once the widget has been displayed. |
Yes | Yes | No | No |
Defines the scaling behavior of the associated icon, if the source image size is bigger than the place reserved for it in the widget. Note: On GDC and GBC, if the
scaleIcon attribute is undefined, the
behavior depends on the type of action view: toolbar button icons and action panel
button icons are scaled down to match the size of the widget. For other widgets, by
default no scaling occurs, as for scaleIcon="no" .Values can be:
Independently of the If the icon must be enlarged, the image is centered and a transparent border is added to "fill" the empty space. This allows a mix of larger and smaller icons while keeping widget alignment. If scaling takes place, the aspect ratio of the original image is kept. A non-square source image displays as a non-square scaled icon. |
Yes (see note) | Yes (see note) | No | No |