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

TCustomPanel

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

TCustomPanel: The base type for TPanel

Declaration

Source position: extctrls.pp line 1017

type TCustomPanel = class(TCustomControl)

protected

  procedure AdjustClientRect(); override;

  

AdjustClientRect - method for adjusting the size and position of the client control

  function GetControlClassDefaultSize; override;

  

Find the default size for this class of controls (by reference to parents)

  procedure CMParentColorChanged(); message;

  

Control Message for a change in parent colour

  function GetDefaultDockCaption; override;

  

GetDefaultDockCaption - returns the default string for dock caption

  procedure Loaded; override;

  

  procedure RealSetText(); override;

  

Procedure to store text associated with the control in a string

  procedure Paint; override;

  

The default paint handler for the class

  procedure UpdateParentColorChange;

  

UpdateParentColorChange - update any pending changes in parent colour

public

  constructor Create(); override;

  property Align;

  

Used to align the control in one of four directions.

  property Alignment: TAlignment; [rw]

  

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

  property BevelInner: TPanelBevel; [rw]

  

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

  property BevelOuter: TPanelBevel; [rw]

  

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

  property BevelWidth: TBevelWidth; [rw]

  

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

  property BorderWidth: TBorderWidth; [rw]

  

Property to determine width of the window's border

  property Color;

  

Determine the colour for the current control

  property Caption; [rw]

  

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

  property FullRepaint: Boolean; [rw]

  

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 TabStop;

  

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

end;

Inheritance

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

TCustomPanel: The base type for TPanel

A Panel is a defined rectangular area of the form into which other components can be placed to group them functionally and geographically.

TCustomPanel defines the positioning and bevelling properties of any descendent classes, and provides methods for painting and writing text to the panel.