Generic function
Specifies the Exit button in the specified dialog.
dialog-exit-button-setter exit-button dialog => exit-button
<button>.
<dialog-frame>.
<button>.
duim-frames
duim-frames
Sets the Exit button in dialog. The Exit button is commonly found in multi-page dialogs, where the user is given the option to exit the sequence at any point (as well as navigate through the sequence using Next and Back buttons).
In the following example, a simple dialog frame is created, and then its exit button is redefined before the dialog is displayed on screen.
define variable *dialog*
= make(<dialog-frame>,
exit-button?: #t,
cancel-button?: #t,
help-callback:
method (gadget)
notify-user (format-to-string
("Here is some help",
gadget))
end);dialog-exit-button-setter
(make(<push-button>, label: "Yes",
activate-callback: exit-dialog,
max-width: $fill), *dialog*);start-frame(*dialog*);
dialog-cancel-button-setter, page 751
dialog-exit-enabled?, page 758