dlg_add_txt_input()

Adds a text input field to a custom dialog window.

Syntax

dlg_add_txt_input(handle, name)
dlg_add_txt_input(handle, name, text)

Parameters

Parameter Type Description
handle String The dialog handle.
name String The label of the text input field.
text String The initial text in the input field. Optional

Return Value

Examples

hnd = dlg_new("My dialog");
dlg_add_label(hnd, "", "Name the first thing you see");
dlg_add_txt_input(hnd, "", "", "thething");
dlg_show(hnd);
print("thething: ", thething);

See also

dlg_new
dlg_show

dlg_add_separator()
dlg_add_image
dlg_add_label
dlg_add_checkbox
dlg_add_num_input
dlg_add_txt_input
dlg_add_dropbox()
dlg_add_button

dlg_comp_pos
dlg_comp_size
dlg_comp_color
dlg_comp_font
dlg_comp_name
dlg_comp_value
dlg_comp_callback