Next Previous Up Top Contents Index

9.4 DUIM-Frames Module

dialog-exit-button-setter

Generic function

Summary

Specifies the Exit button in the specified dialog.

Signature

dialog-exit-button-setter exit-button dialog => exit-button

Arguments

exit-button
An instance of type <button>.

dialog
An instance of type <dialog-frame>.

Values

exit-button
An instance of type <button>.

Library

duim-frames

Module

duim-frames

Description

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).

Example

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*);

See also

dialog-cancel-button-setter, page 751

dialog-exit-button, page 754

dialog-exit-enabled?, page 758

dialog-exit-callback, page 756

dialog-help-button-setter, page 766


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index