1 CAPI Reference Entries

display-dialog

Function

Summary

Thedisplay-dialog function displays a CAPI interface as a dialog box.

Syntax

display-dialog interface &key screen focus (modal t)

Description

This is a complementary function that displays the CAPI interface interface as a dialog box.

The variable screen is the screen for the dialog to be displayed on. The focus should be the pane within the interface that should be given the focus initially. If a focus is not supplied, then it lets the window system decide. The variable modal indicates whether or not the dialog takes over all input to the application.

The CAPI also providespopup-confirmer which gives you the standard OK and Cancel button functionality.

Example

(capi:display-dialog (capi:make-container
                      (make-instance
                       'capi:push-button-panel
                       :items '("OK" "Cancel")
                       :callback-type :data
                       :callbacks '(capi:exit-dialog
                                    capi:abort-dialog))
                       :title "Empty Dialog"))

Example File

capi/elements/dialogs.lisp

See Also

interface
popup-confirmer
exit-dialog
abort-dialog
display


CAPI Reference Manual, Liquid Common Lisp Version 5.0 - 3 OCT 1997

Generated with Harlequin WebMaker