Generic function
Specifies the Cancel button in the specified dialog.
dialog-cancel-button-setter cancel-button dialog
=> cancel-button
<button>.
<dialog-frame>.
<button>.
duim-frames
duim-frames
Specifies the Cancel button in dialog.
In the following example, a simple dialog frame is created, and then its cancel 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-cancel-button-setter
(make(<push-button>, label: "No",
activate-callback: cancel-dialog,
max-width: $fill), *dialog*);start-frame(*dialog*);
dialog-cancel-button, page 750
dialog-cancel-callback, page 752