Overview
Several Control
s are labeled, including Labels and Buttons,
ToggleButtons, CheckBoxes, and RadioButtons. These all have similar
variables for configuring the label appearances.
Script Variable Summary
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|
Variable Summary
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public | font | Font |
The default font to use for text in the Labeled. 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. |
||||
public | graphic | Node |
An optional icon for the Labeled. 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 |
||||
public | graphicHPos | HPos |
Specifies the horizontal positioning of the graphic relative to the text. |
||||
public | graphicTextGap | Number |
The amount of space between the graphic and text |
||||
public | graphicVPos | VPos |
Specifies the vertical positioning of the graphic relative to the text. |
||||
public | hpos | HPos |
Specifies how the text and graphic within the Labeled should be positioned horizontally when there is empty space within the Labeled. |
||||
public | text | String |
The text to display in the label. |
||||
public | 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. |
||||
public | textOverrun | OverrunStyle |
Specifies the behavior to use if the text of the |
||||
public | 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. |
||||
public | vpos | VPos |
Specifies how the text and graphic within the Labeled should be positioned vertically when there is empty space within the Labeled. |