Next Previous Up Top Contents Index

9.4 DUIM-Frames Module

dialog-cancel-button-setter

Generic function

Summary

Specifies the Cancel button in the specified dialog.

Signature

dialog-cancel-button-setter cancel-button dialog 
=> cancel-button

Arguments

cancel-button
An instance of type <button>.

dialog
An instance of type <dialog-frame>.

Values

cancel-button
An instance of type <button>.

Library

duim-frames

Module

duim-frames

Description

Specifies the Cancel button in dialog.

Example

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

See also

dialog-cancel-button, page 750

dialog-cancel-callback, page 752

dialog-exit-button-setter, page 755

dialog-help-button-setter, page 766


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index