RAD Studio VCL Reference
TPanel Class

TPanel implements a generic panel control.

TPanel = class(TCustomPanel);
class TPanel : public TCustomPanel;


Use TPanel to put an empty panel on a form. Panels have properties for providing a beveled border around the control, as well as methods to help manage the placement of child controls embedded in the panel. 

You can also use panels to group controls together, similar to the way you can use a group box, but with a beveled border (or no border) rather than the group box outline. Panels are typically used for groups of controls within a single form. If you intend to use the same grouping in other forms, you may want to use a frame instead. 

Panels with no borders are useful as docking sites when writing applications that use drag-and-dock. 

Although you can use a panel to implement a status bar or tool bar, it is recommended that you use the TToolBar and TStatusBar classes instead. 


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