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