Important: The information in this document is obsolete and should not be used for new development.
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 calledMyDoPrintIdle) 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
PrDlgMainfunction to display the dialog box. In one of the parameters toPrDlgMain, you pass the address of an initialization function (here calledMyPrDialogAppend) 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.