All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

page-setup-dialog Function

Summary

Displays the page setup dialog for a given printer.

Package

capi

Signature

page-setup-dialog &key screen owner printer continuation

Arguments
screen
A screen or nil.
owner
A pane or nil.
printer
A printer or nil.
continuation
A function or nil.
Description

The function page-setup-dialog displays the page setup dialog for printer. If printer is not specified, the dialog for the current printer is displayed.

The CAPI screen on which to display the dialog is given by screen, which is the current screen by default.

owner specifies an owner window for the dialog. See 10 Dialogs: Prompting for Input for details.

If continuation is non-nil, then it must be a function with a lambda list that accepts one argument. continuation is called with the values that would normally be returned by page-setup-dialog. On Cocoa, passing continuation causes the dialog to be made as a window-modal sheet and display-dialog returns immediately, leaving the dialog on the screen. The with-dialog-results macro provides a convenient way to create a continuation function.

Examples
(example-edit-file "capi/printing/simple-print-port")
See also

current-printer
16 Printing from the CAPI—the Hardcopy API


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:27