[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 1832

type TCustomControl = class(TWinControl)

protected

  procedure WMPaint(); message;

  

  procedure PaintWindow(); override;

  

Paint handler plug-in

  procedure FontChanged(); override;

  

  procedure SetColor(); override;

  

public

  constructor Create(); override;

  destructor Destroy; override;

  procedure DestroyWnd; override;

  

DestroyWnd - destroy the window for this control

  procedure Paint; virtual;

  

The default paint handler for the class

  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

  

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

  

The base class for all windowed controls

TControl

  

TControl - the main ancestor class for visual controls.

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