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

TControlCanvas

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

The base class for the canvas property of several graphic controls, such as TGraphicControl and TCustomControl

Declaration

Source position: controls.pp line 251

type TControlCanvas = class(TCanvas)

protected

  procedure CreateHandle; override;

  

CreateHandle - greates a new Handle for the Canvas

  function GetDefaultColor(); override;

public

  constructor Create;

  

Create - constructor for TControlCanvas: calls inherited Create then initialises local variables to show an empty control

  destructor Destroy; override;

  

Destroy - destructor for TControlCanvas: frees handle and calls inherited Destroy

  procedure FreeHandle; override;

  

FreeHandle - release a Handle

  function ControlIsPainting;

  property Control: TControl; [rw]

  

The Control object for which this is the Canvas

end;

Inheritance

TControlCanvas

  

The base class for the canvas property of several graphic controls, such as TGraphicControl and TCustomControl

|

TCanvas

  

TCanvas - where most of the drawing is performed

|

TFPCustomCanvas

|

TPersistent

|

TObject

See also

TGraphicControl

  

TGraphicControl is the base class for all lightweight controls.

TCustomControl

  

TCustomControl - a base class for many window controls

TCanvas

  

TCanvas - where most of the drawing is performed

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