Next Prev Up Top Contents Index

display-dialog

Function
Summary

The display-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 provides popup-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"))
See also

interface
popup-confirmer
exit-dialog
abort-dialog
display


LispWorks CAPI Reference Manual - 14 Dec 2001

Next Prev Up Top Contents Index