Important: The information in this document is obsolete and should not be used for new development.
Drawing Controls
If you specify that a control is initially visible (either in the control resource or in a parameter toNewControl), the Control Manager draws the control inside its window when you call either the GetNewControl
or theNewControl
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 theShowControl
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,
useUpdateControls
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