Skip to content

pyui.create_label

daniel-flassig edited this page Jul 2, 2020 · 22 revisions

Create a label or static text. Labels are most often used to label/describe another control. Sometimes, labels are used to display a value to the user (in this case, consider pyui.create_text_display()). And sometimes, labels stand on their, e.g., for some instruction text (in this case, consider using create_standalone_label as this might result in different spacing).

pyui.create_label(dialog, col_spec [,text [, options]])
dialog:create_label(col_spec [,text [, options]])

Parameters

Type Description
dialog dialog_handle Dialog where the control is created
col_spec integer or {first, last} Index of the column or specification of the column-span, where the control is placed.
text string Initial text-content of the control
options {...} Table of options

Options

  • align: Optional alignment of the text "left", "center" or "right"

Return value

Type Description
control_handle A handle to the newly created control

See also

Control Gallery, set_control_text, create_standalone_label, create_text_display, create_text_box

Clone this wiki locally