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

TCustomControl

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

TCustomControl - a base class for many window controls

Declaration

Source position: controls.pp line 1833

type TCustomControl = class(TWinControl)

protected

  procedure WMPaint(); message;

  

WMPaint - LCL message for painting

  procedure DestroyWnd; override;

  

DestroyWnd - destroy the window for this control

  procedure PaintWindow(); override;

  

Paint handler plug-in

  procedure FontChanged(); override;

  

FontChanged - method for dealing with a changed font

  procedure SetColor(); override;

  

Set up the colour to be used by the control

  procedure Paint; virtual;

  

The default paint handler for the class

public

  constructor Create(); override;

  destructor Destroy; override;

  property Canvas: TCanvas; [rw]

  

The area of a control on which its components are drawn or painted

  property BorderStyle;

  

BorderStyle - none, or single

  property OnPaint: TNotifyEvent; [rw]

  

Event handler for painting

end;

Inheritance

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

Contains simple basic definitions to create, destroy and paint window controls and set basic properties like canvas and border

See also

TWinControl

  

TWinControl - the base class for all windowed controls

TControl

  

TControl - the main ancestor class for visual controls.