dlg_callback()

Sets a callback function to be executed when the “Apply,” “OK,” or “Close” button is clicked in a dialog.

Syntax

dlg_callback(handle, callback_function, param1, param2, ...)

Parameters

Parameter Type Description
handle String The handle of the dialog.
callback_function String The name of the callback function to execute.
param String (Optional) Parameters passed to the callback.

Return Value

Examples

Set a callback for a dialog

dlg_callback("dialog_123", "#onDialogClose");

Set a callback with parameters

dlg_callback("dialog_123", "#onDialogClose", "param1", "param2");

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