Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Macintosh Toolbox Essentials /
Chapter 5 - Control Manager / Control Manager Reference
Control Manager Routines


Drawing Controls

If you specify that a control is initially visible (either in the control resource or in a parameter to NewControl), the Control Manager draws the control inside its window when you call either the GetNewControl or the NewControl function. In either case, the Control Manager draws the control immediately, without using your window's standard updating mechanism. If you specify that a control is invisible, you can use the ShowControl procedure when you want to draw the control.

Note that even a visible control might be completely or partially obscured by overlapping windows or other objects.

When your application receives an update event for a window that contains controls,
use UpdateControls to redraw the necessary controls in the updated window. Note that the Dialog Manager automatically draws and updates controls in alert boxes and dialog boxes.


Subtopics
ShowControl
UpdateControls
DrawControls
Draw1Control

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996