RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWinControl.ShowControl Method

Ensures that a specified child control is visible.

Pascal
procedure ShowControl(AControl: TControl); virtual;
C++
virtual __fastcall ShowControl(TControl * AControl);

Call ShowControl to display a child control. Specify the control you want to ensure will be visible as the value of the AControl parameter. 

As implemented in TWinControl, ShowControl simply calls the ShowControl method of the control's parent. Derived objects override ShowControl to perform whatever actions are necessary to allow the indicated child object to be visible. Possible actions include scrolling the particular child object into view, or changing to the appropriate notebook page. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!