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

type TControlCanvas = class(TCanvas)

protected

  procedure CreateHandle; override;

  

CreateHandle - greates a new Handle for the Canvas

  procedure CreateFont; override;

  

CreateFont - creates font by calling inherited CreateFont

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

  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

?

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