From RAD Studio API Documentation
Jump to: navigation, search



TCustomPanel = class(TCustomControl)


class PASCALIMPLEMENTATION TCustomPanel : public Vcl::Controls::TCustomControl


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


TCustomPanel is the base class for all panel components.

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 .

See Also