From RAD Studio API Documentation
Jump to: navigation, search



TPanel = class(TCustomPanel)


class PASCALIMPLEMENTATION TPanel : public TCustomPanel


Type Visibility Source Unit Parent
class public
Vcl.ExtCtrls Vcl.ExtCtrls


TPanel implements a generic panel control.

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.

See Also