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

TCustomListBox.Canvas

Drawing surface where the control is drawn.

Declaration

Source position: stdctrls.pp line 636

public property TCustomListBox.Canvas : TCanvas
  read FCanvas;

Description

Canvas is a read-only TCanvas property with the drawing surface where the control is drawn.

Its value is assigned the constructor for the class instance, and uses a TControlCanvas instance to maintain an association between the control and its device context. It is freed when the control is destroyed.

Values in the Font and Brush properties are assigned to Canvas, and used to measure and draw the Items for the control.

See also

TCustomListBox.DrawItem

  

Paints an item in owner-draw mode.

TCustomListBox.MeasureItem

  

Gets the height for an item in the list.

TWinControl.Brush

  

The Brush used to paint the background for the control.

TControl.Font

  

The font to be used for text display in this control.

TControlCanvas

  

Base class which provides a canvas property used in graphic controls.

TCanvas

  

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


Version 4.0 Generated 2025-05-03 Home