dlg_keep_open()

Prevents a dialog from closing when the close button is clicked. Allows the dialog to be cleared and reused instead of being closed.

Syntax

dlg_keep_open(handle, keep)

Parameters

Parameter Type Description
handle String The handle of the dialog to modify.
keep Number `1` to keep the dialog open, `0` to allow closing. optional

Return Value

Examples

Prevent a dialog from closing when the close button is clicked

dlg_keep_open("dialog_123", 1);

Allow the dialog to close normally

dlg_keep_open("dialog_123", 0);

See also

dlg_new
dlg_init
dlg_update
dlg_clear

dlg_show
dlg_abort

dlg_is_valid
dlg_keep_open
dlg_callback

dlg_modal
dlg_set_resizable
dlg_set_pos
dlg_set_size
dlg_set_btn
dlg_set_name
dlg_set_color