dlg_set_btn()

Sets which buttons (Apply, OK, Close) are visible in the top-right corner of the dialog.

Can enable or disable all buttons or configure individual buttons.

Syntax

dlg_set_btn(handle, visible)
dlg_set_btn(handle, apply, ok, close)

Parameters

Parameter Type Description
handle String The handle of the dialog.
visible Number `1` to show all buttons, `0` to hide all buttons. Optional
apply Number `1` to show the “Apply” button, `0` to hide it. Optional
ok Number `1` to show the “OK” button, `0` to hide it. Optional
close Number `1` to show the “Close” button, `0` to hide it. Optional

Return Value

Examples

Hide all buttons

dlg_set_btn("dialog_123", 0);

Show only OK and Close buttons

dlg_set_btn("dialog_123", 0, 1, 1);

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