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