dlg_comp_callback()

Sets a callback function for the last added component in a custom dialog.

Syntax

dlg_comp_callback(handle, callback, [args...])

Parameters

Parameter Type Description
handle String The dialog handle.
callback String The function to be executed on event trigger.
args Any Optional arguments to pass to the callback. *optional*

Return Value

Examples

Set a callback function for the last added component

dlg_comp_callback(hnd, "#onClickHandler");

Set a callback with arguments

dlg_comp_callback(hnd, "#onClickHandler", 1, "test");

See also

dlg_add_image
dlg_add_label
dlg_add_checkbox
dlg_add_num_input
dlg_add_txt_input
dlg_add_button

dlg_comp_pos
dlg_comp_size
dlg_comp_color
dlg_comp_font
dlg_comp_name
dlg_comp_value
dlg_comp_callback