Generic function
Enables or disables the Exit button for the specified dialog.
dialog-exit-enabled?-setter enabled? dialog => enabled?
<boolean>.
<dialog-frame>.
<boolean>.
duim-frames
duim-frames
Enables or disables the Exit button for 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 this example, a dialog is created, and then its exit button is disabled. When displayed on the screen, the exit button is grayed out and you cannot click on it.
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-enabled?-setter(#f, *dialog*);
start-frame(*dialog*);
dialog-exit-button-setter, page 755