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

# TPanel

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

## Declaration

Source position: extctrls.pp line 1228

`type TPanel = class(TCustomPanel)`
`published`
`property Align;` |  |
`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 BidiMode;`
`property BorderWidth;` |  | Property to determine width of the window's border
`property BorderStyle;` |  | BorderStyle - none, or single
`property Caption;` |  |
`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? (read/write, default is 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 (read/write). If not, it usually appears 'greyed-out'
`property Font;` |  | The font to be used for text in this control (read/write).
`property FullRepaint;` |  | FullRepaint - if True, the panel needs to be fully repainted after each change
`property ParentBidiMode;`
`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;` |  | Create DockManager for docking (read/write)
`property Visible;` |  | Visible - can the control be seen?
`property OnClick;` |  | Event Handler for mouse click
`property OnContextPopup;`
`property OnDockDrop;` |  | Event handler for the drop of a control to be docked.
`property OnDockOver;` |  | Event handler for moves of a control over this docksite.
`property OnDblClick;` |  | Event Handle for mouse double-click
`property OnDragDrop;` |  | Event handler for the drop of a control onto this control.
`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 operation
`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 OnMouseEnter;`
`property OnMouseLeave;`
`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 operation
`property OnStartDrag;` |  | Event handler for start of dragging operation
`property OnUnDock;` |  | Event handler for control becoming disconnected (undocked) from parent.
`end;`

## Inheritance

`TPanel`
`TCustomPanel` |  | TCustomPanel: The base type for TPanel
`TCustomControl` |  | TCustomControl - a base class for many window controls
`TWinControl`
`TControl`
`TLCLComponent` |  | TLCLComponent - base class for LCL components
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent`
`TObject`

The latest version of this document can be found at lazarus-ccr.sourceforge.net .