Important: The information in this document is obsolete and should not be used for new development.
DrawDialog
If you don't use any other Dialog Manager routines for handling events in a dialog box, you can use theDrawDialogprocedure to draw its entire contents.
PROCEDURE DrawDialog (theDialog: DialogPtr);
theDialog- A pointer to a dialog record.
DESCRIPTION
TheDrawDialogprocedure draws the entire contents of the specified dialog box. TheDrawDialogprocedure draws all dialog items, calls the Control Manager procedureDrawControlsto draw all controls, and calls the TextEdit procedureTEUpdateto update all static and editable text items and to draw their display rectangles. TheDrawDialogprocedure also calls the application-defined items' draw procedures if
the items' rectangles are within the update region.The
DialogSelect,ModalDialog,Alert,StopAlert,NoteAlert, andCautionAlertroutines useDrawDialogautomatically. If you useGetNewDialog
to create a dialog box but don't use any of these other Dialog Manager routines when handling events in the dialog box, you can useDrawDialogto redraw the contents of the dialog box when it's visible. If the dialog box is invisible, first use the Window Manager procedureShowWindowand then useDrawDialog.SEE ALSO
See the chapters "Window Manager" and "Event Manager" in this book for more information on update and activate events for windows. TheDrawControlsprocedure is described in the chapter "Control Manager" in this book. TheTEUpdateprocedure is described in the chapter "TextEdit" in Inside Macintosh: Text.