Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 9 - Printing Manager / Printing Manager Reference

Application-Defined Routines

The printer driver for the current printer periodically calls an idle procedure while sending a document to the printer. You can provide your own idle procedure (here called MyDoPrintIdle) that handles events in a dialog box reporting the status of the print job.

If you add items--such as checkboxes and radio buttons--to the default style or job dialog box, your application uses the PrDlgMain function to display the dialog box. In one of the parameters to PrDlgMain, you pass the address of an initialization function (here called MyPrDialogAppend) that you use to append items to your dialog box.

If you append items to the style or job dialog boxes, you need to provide a function (sometimes called a dialog hook) to handle events in these items. You should also provide an event filter function to handle events that the Dialog Manager doesn't handle--such as update events in background windows--in modal dialog boxes. For a description of how to handle events in dialog boxes and how to write an event filter function for modal dialog boxes, see the chapter "Dialog Manager" in Inside Macintosh: Macintosh Toolbox Essentials.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996