Generic function
Specifies the Help button in the specified dialog.
dialog-help-button-setter help-button dialog => help-button
false-or(<button>).
<dialog-frame>.
false-or(<button>)
duim-frames
duim-frames
Specifies the Help button in dialog. Many dialogs contain a Help button that, when clicked, displays a relevant topic from the online help system for the application.
In the following example, a simple dialog frame is created, and then its help 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-help-button-setter
(make(<push-button>, label: "Help Me!",
activate-callback:
method (gadget)
notify-user
(format-to-string
("Here is some help",
gadget))
end);
max-width: $fill), *dialog*);start-frame(*dialog*);
dialog-cancel-button-setter, page 751