Skip to content

pyui.create_caption

fabian-flassig edited this page Jul 8, 2026 · 2 revisions

Create a caption, a heading-style label used to title a section or a group of controls in a dialog.

pyui.create_caption(dialog, col_spec [,text])
dialog:create_caption(col_spec [,text])

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 Optional: The caption text

Return value

Type Description
control_handle A handle to the newly created control

Note

Use set_control_text to change the caption text later.

See also

Control Gallery, set_control_text, create_label, create_standalone_label, create_group_box

Clone this wiki locally