Important: The information in this document is obsolete and should not be used for new development.
ShowControl
To draw a control that is currently invisible, you can use theShowControlprocedure.
PROCEDURE ShowControl (theControl: ControlHandle);
theControl- A handle to the control you want to make visible.
DESCRIPTION
If the specified control is invisible, theShowControlprocedure makes it visible and immediately draws the control within its window without using your window's standard updating mechanism. If the control is already visible,ShowControlhas
no effect.You can make a control invisible in several ways:
- You can specify that it's invisible in its control resource.
- You can specify that it's invisible in a parameter to the
NewControl function.- You can use the
HideControl procedure to change a visible control into an
invisible one.- You can directly change the
contrlVisfield of the control's control record.
SPECIAL CONSIDERATIONS
TheShowControlprocedure draws the control in its window, but the control can still be completely or partially obscured by overlapping windows or other objects.SEE ASO
Listing 5-14 on page 5-36 illustrates the use ofShowControlto redisplay scroll bars after moving and resizing them.