Skip to content

pyui.create_text_box

daniel-flassig edited this page May 3, 2020 · 4 revisions

Create an editable text box or edit control. This is often the main way to get text or numeric input from the user.

pyui.create_text_box(dialog, col_spec [,text])
dialog:create_text_box(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 Initial text-content of the control

Return value

Type Description
control_handle A handle to the newly created control

Note

When the user changes the text in the control, the on_change handler is called.

See also

Control Gallery, set_control_text, set_on_change_handler, create_text_display, create_label

Clone this wiki locally