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 theDrawDialog
procedure to draw its entire contents.
PROCEDURE DrawDialog (theDialog: DialogPtr);
theDialog
- A pointer to a dialog record.
DESCRIPTION
TheDrawDialog
procedure draws the entire contents of the specified dialog box. TheDrawDialog
procedure draws all dialog items, calls the Control Manager procedureDrawControls
to draw all controls, and calls the TextEdit procedureTEUpdate
to update all static and editable text items and to draw their display rectangles. TheDrawDialog
procedure also calls the application-defined items' draw procedures if
the items' rectangles are within the update region.The
DialogSelect
,ModalDialog
,Alert
,StopAlert
,NoteAlert
, andCautionAlert
routines useDrawDialog
automatically. 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 useDrawDialog
to redraw the contents of the dialog box when it's visible. If the dialog box is invisible, first use the Window Manager procedureShowWindow
and 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. TheDrawControls
procedure is described in the chapter "Control Manager" in this book. TheTEUpdate
procedure is described in the chapter "TextEdit" in Inside Macintosh: Text.