[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ExtCtrls' (#lcl)

TPanel

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TPanel: A defined rectangular area of the form into which other components can be placed

Declaration

Source position: extctrls.pp line 1089

type TPanel = class(TCustomPanel)

published

  property Align;

  

Used to align the control to the top, bottom, left or right of its client.

  property Alignment;

  

Alignment - whether text is left or right justified, or centered

  property Anchors;

  

The set of anchor definitions for this control

  property AutoSize;

  

Whether auto-size is to be used

  property BorderSpacing;

  

Determines the border spacing for this control

  property BevelInner;

  

BevelInner - determines the nature of the Inner Bevel of the panel (whether raised, lowered etc)

  property BevelOuter;

  

BevelOuter - determines the nature of the Outer Bevel of the panel (whether raised, lowered etc)

  property BevelWidth;

  

BevelWidth - the Width of the panel's bevel in pixels

  property BorderWidth;

  

Property to determine width of the window's border

  property BorderStyle;

  

BorderStyle - none, or single

  property Caption;

  

Caption - the text-string appearing on the Control, usually used to identify its function

  property ChildSizing;

  

  property ClientHeight;

  

ClientHeight - determines the height of the client within which the control exists

  property ClientWidth;

  

ClientWidth - determines the width of the client within which the control exists

  property Color;

  

Determine the colour for the current control

  property Constraints;

  

Determine Constraints (max and min height and width) for this control

  property DockSite;

  

Is this a dock site? Default false

  property DragCursor;

  

DragCursor - the style of cursor to be used during the Drag process

  property DragKind;

  

DragKind - what sort of dragging? Drag or Dock

  property DragMode;

  

DragMode - whether manual or automatic

  property Enabled;

  

Whether the control is Enabled. If not, it usually appears 'greyed-out'

  property Font;

  

The Font to be used for text in this control

  property FullRepaint;

  

FullRepaint - if True, the panel needs to be fully repainted after each change

  property ParentColor;

  

ParentColor - should the control have the same colour as the parent? Default is true

  property ParentFont;

  

ParentFont - should the control use the same font as the parent? Default is true

  property ParentShowHint;

  

ParentShowHint - does the control adopt the same hinting behaviour as its parent? Default is true

  property PopupMenu;

  

PopupMenu - a context-sensitive menu that pops up when the right mouse button is clicked over this control

  property ShowHint;

  

Flag to determine: Is hint to be displayed for this control?

  property TabOrder;

  

The place this control occupies in the list of tabs

  property TabStop;

  

Is the control in the sequence of controls accessed by successive presses of the Tab key?

  property UseDockManager;

  

Use a dock manager to control docking? (default false)

  property Visible;

  

Visible - can the control be seen?

  property OnClick;

  

Event Handler for mouse click

  property OnDockDrop;

  

Event handler for dropping a control in a docked position

  property OnDockOver;

  

Event handler for docking a control over another control

  property OnDblClick;

  

Event Handle for mouse double-click

  property OnDragDrop;

  

Event handler for the Drag-Drop manoeuvre

  property OnDragOver;

  

Event handler for the case when a control is dragged over another control

  property OnEndDock;

  

Event handler for the end of a docking manoeuvre

  property OnEndDrag;

  

Event handler for the end of a dragging process

  property OnEnter;

  

OnEnter - event handler for when the mouse enters the control, and the control receives focus

  property OnExit;

  

OnExit - event handler for when the mouse leaves the control and it loses focus

  property OnGetSiteInfo;

  

OnGetSiteInfo - event handler for finding out information about the (docking) site

  property OnGetDockCaption;

  

OnGetDockCaption - event handler to find the caption for the docked control

  property OnMouseDown;

  

Event handler for when a mouse button is pressed down

  property OnMouseMove;

  

Event handler for mouse movement within the current control

  property OnMouseUp;

  

Event handler for when the mouse button is released, ie "up"

  property OnResize;

  

Event Handler for resize of control

  property OnStartDock;

  

Event handler for the start of a docking manoeuvre

  property OnStartDrag;

  

Event handler for start of dragging process

  property OnUnDock;

  

OnUnDock - event handler for control becoming disconnected (undocked) from parent

end;

Inheritance

TPanel

  

TPanel: A defined rectangular area of the form into which other components can be placed

|

TCustomPanel

  

TCustomPanel: The base type for TPanel

|

TCustomControl

  

TCustomControl - a base class for many window controls

|

TWinControl

  

TWinControl - the base class for all windowed controls

|

TControl

  

TControl - the main ancestor class for visual controls.

|

TLCLComponent

?

TObject

Description

TPanel: A defined rectangular area of the form into which other components can be placed to group them functionally and geographically

Most of the properties are defined in ancestor classes including TCustomPanel, TCustomControl and TWinControl

Any controls such as buttons or check boxes that are placed inside the panel become its children, and inherit many of its properties. If the Panel is moved, the child controls move with it. Any part of a child control that falls outside the panel becomes invisible.

See also

HowToUseStdCtrls

  

How to use StdCtrls, ComCtrls or ExtCtrls