RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomPanel Class

TCustomPanel is the base class for all panel components.

Pascal
TCustomPanel = class(TCustomControl);
C++
class TCustomPanel : public TCustomControl;

ExtCtrls

Use TCustomPanel as a base class when defining objects that include other controls as constituent parts. Panel components are controls can contain other controls, grouping them together. 

When a panel is aligned with the form using the Align property, it maintains the same relative position to the form even when the form is resized. For example, a panel can be aligned so that it always remains on the top of the form, even when the user changes the shape and size of the form. This makes panels useful for implementing components that act like tool bars or status bars. For example, construct a tool bar or tool palette by adding speed buttons that execute commands or set modes to a panel . 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!