Important: The information in this document is obsolete and should not be used for new development.
DisposeDialog
To dismiss a dialog box for which the Dialog Manager supplies memory, use theDisposeDialog
procedure. TheDisposeDialog
procedure is also available
as theDisposDialog
procedure.
PROCEDURE DisposeDialog (theDialog: DialogPtr);
theDialog
- A pointer to a dialog record.
DESCRIPTION
TheDisposeDialog
procedure calls theCloseDialog
procedure and, in addition, releases the memory occupied by the dialog box's item list resource and the dialog record. CallDisposeDialog
when you're done with a dialog box if you passNIL
in
thedStorage
parameter toGetNewDialog
,NewColorDialog
, orNewDialog
.Generally, your application should not allocate memory for the dialog records of modal dialog boxes or movable modal dialog boxes. In these cases your application should use
DisposeDialog
when the user clicks the OK or Cancel button.SEE ALSO
If you allocate memory for the dialog box (for example, by passing a pointer in thedStorage
parameter to theGetNewDialog
,NewColorDialog
, orNewDialog
function), useCloseDialog
, described on page 6-112, instead ofDisposeDialog
.