Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TGraphicControl.Canvas

A clipped window into the parent Canvas.

Declaration

Source position: controls.pp line 2400

public property TGraphicControl.Canvas : TCanvas
  read FCanvas;

Description

Don't paint on the entire Canvas! Instead use the dimensions of the TGraphicControl stored in the ClientRect.

If you ask for the Canvas.Width or Canvas.Height, you are actually getting the Canvas dimensions from the Parent control.

See also

TControl.ClientRect

  

Size of the client area for the control.

TControl.ClientWidth

  

The width of the client area for the control.

TControl.ClientHeight

  

The height for the client area on the control.

TControl.BoundsRect

  

The Top, Left and Bottom, Right for the control, in client coordinates.

TCanvas

  

Implements a drawing surface for a visual control or bitmap image.



CT Web help

CodeTyphon Studio