Labeled
Overview
Several Controls are labeled, including Labels and Buttons, ToggleButtons, CheckBoxes, and RadioButtons. These all have similar variables for configuring the label appearances.
Profile: common
Variable Summary
| name | type | Default Value | description |
|---|---|---|---|
| text | String |
The text to display in the label. |
|
| hpos | HPos |
Specifies how the text and graphic within the Labeled should be positioned horizontally when there is empty space within the Labeled. |
|
| vpos | VPos |
Specifies how the text and graphic within the Labeled should be positioned vertically when there is empty space within the Labeled. |
|
| textAlignment | TextAlignment |
Specifies the behavior for lines of text when text is multiline Unlike vpos which affects the graphic and text, this setting only affects multiple lines of text relative to the text bounds. |
|
| textOverrun | OverrunStyle |
Specifies the behavior to use if the text of the |
|
| textWrap | Boolean |
If a run of text exceeds the width of the Labeled, then this variable indicates whether the text should wrap onto another line. |
|
| font | Font |
The default font to use for text in the Labeled. If the Label's text is rich text then this font may or may not be used depending on the font information embedded in the rich text, but in any case where a default font is required, this font will be used. |
|
| graphic | Node |
An optional icon for the Labeled. This can be positioned relative to the text by using the graphicHPos and graphicVPos variables. The node specified for this variable cannot appear elsewhere in the scene graph, otherwise the |
|
| graphicHPos | HPos |
Specifies the horizontal positioning of the graphic relative to the text. |
|
| graphicVPos | VPos |
Specifies the vertical positioning of the graphic relative to the text. |
|
| graphicTextGap | Number |
The amount of space between the graphic and text |
