Carbon


PMPageSetupDialogMain

Header: PMApplication.h Carbon status: Supported

Displays your application’s customized Page Setup dialog box.

OSStatus PMPageSetupDialogMain (
    PMPageFormat pageFormat, 
    Boolean *accepted, 
    PMPageSetupDialogInitUPP myInitProc
);
Parameter descriptions
pageFormat

A PMPageFormat object.

accepted

Returns true if the user clicks the OK button, or false if the user clicks Cancel.

myInitProc

A universal procedure pointer to your dialog initialization function. Your initialization function is defined by the callback PMPageSetupDialogInitProcPtr.

function result

A result code. A result code. See “Result Codes”.

DISCUSSION

PMSessionPageSetupDialogMain is recommended instead of PMPageSetupDialogMain.

SPECIAL CONSIDERATIONS

Valid after calling PMBegin and creating a page format object.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.

CARBON NOTES

The PMPageSetUpDialogMain function replaces the Printing Manager function PrDlgMain.

A panel interface under development will eventually make it unnecessary to call PMPageSetUpDialogMain.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)