Important: The information in this document is obsolete and should not be used for new development.
MyPrDialogAppendIf you customize a style or job dialog box, your application uses the
PrDlgMainfunction to display the dialog box. In one of the parameters to
PrDlgMain, you pass the address of an initialization function that you use to append items--such as checkboxes and radio buttons--to the dialog box. Here is how might declare your initialization function if you were to name it
FUNCTION MyPrDialogAppend (hPrint: THPrint): TPPrDlg;
- A handle to a
TPrintrecord (described on page 9-41).
MyPrDialogAppendfunction should use the Dialog Manager procedure
AppendDITLto add items to the style or job dialog box for the document whose
TPrintrecord is passed in the
hPrintparameter. As its function result, your function should return a pointer to the
TPrDlgrecord (described on page 9-47) for the customized style or job dialog box.
You can use the
PrJobInitfunction (described on page 9-61 and page 9-62, respectively) to get an initialized
TPrDlgrecord for the current printer.
MyPrDialogAppendfunction should install pointers to two functions in the
TPrDlgrecord for this dialog box. Put a pointer to one function in the
pFltrProcfield; this function should handle events (such as update events in background applications and disk-inserted events) that the Dialog Manager doesn't handle in a modal dialog box. Put a pointer to the second function in the
pItemProcfield; this function should handle events, such as mouse clicks, in the items added to the dialog box.
SEE ALSOListing 9-8 on page 9-34 shows an example of the
Listing 9-7 on page 9-34 shows how to pass the address of this function to the
PrDlgMainfunction. See the chapter "Dialog Manager" in Inside Macintosh: Macintosh Toolbox Essentials for information about the
AppendDITLprocedure and about handling events in dialog boxes.