Important: The information in this document is obsolete and should not be used for new development.
DisposeControl
To remove a particular control from a window that you want to keep, use theDisposeControl
procedure.
PROCEDURE DisposeControl (theControl: ControlHandle);
theControl
- A handle to the control you wish to remove.
DESCRIPTION
TheDisposeControl
procedure removes the specified control from the screen, deletes it from its window's control list, and releases the memory occupied by the control record and any data structures associated with the control.SPECIAL CONSIDERATIONS
The Window Manager proceduresCloseWindow
andDisposeWindow
automatically dispose of all controls associated with the given window.SEE ALSO
To remove all of the controls in a window, use theKillControls procedure, described next.
TheCloseWindow
andDisposeWindow
procedures are described in the chapter "Window Manager" in this book.