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

TCustomPanel

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

The base class for a general container which can hold other objects. It has a customizable border and a central text.

Declaration

Source position: extctrls.pp line 1026

type TCustomPanel = class(TCustomControl) end;

protected

  class procedure WSRegisterClass; override;

  

Registers this component class with the current WidgetSet.

  procedure AdjustClientRect(); override;

  

Override this method when the ClientRect of a control differs from the default value.

  class function GetControlClassDefaultSize; override;

  

Returns the default size for this class of controls (when added to a form).

  procedure CMParentColorChanged(); message;

  

Message handler for changed parent Color.

  function GetDefaultDockCaption; override;

  

Returns the string for the dock caption, by default the control's Name.

  procedure Loaded; override;

  

  procedure RealSetText(); override;

  

Sets the Caption property.

  procedure Paint; override;

  

Override this method in your derived class with your own paint handler.

  procedure UpdateParentColorChange;

  

UpdateParentColorChange - update any pending changes in parent colour

  property WordWrap: Boolean; [rw]

public

  constructor Create(); override;

  

Create - constructor for TCustomPanel: calls inherited Create then sets initial style, bevel, colour, alignment and bounds

  property Align: TAlign;

  

Specifies the placement of the control inside its Parent.

  property Alignment: TAlignment; [rw]

  

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

  property BevelColor: TColor; [rw]

  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 Color: TColor;

  

The background color of the control.

  property FullRepaint: Boolean; [rw]

  

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

  property ParentColor: Boolean;

  

If true, the Color of the control will be the same as the one from the Parent. Default is true.

  property TabStop: Boolean;

  

Allows the user to navigate to this control, by pressing the Tab key.

Inheritance

TCustomPanel

  

The base class for a general container which can hold other objects. It has a customizable border and a central text.

|

TCustomControl

  

The base class for windowed controls which paint themselves.

|

TWinControl

  

The base class for controls which can contain other (child) controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent

?

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.

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