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

TCustomComboBox.Canvas

Provides access to the drawing surface for the control.

Declaration

Source position: stdctrls.pp line 431

public property TCustomComboBox.Canvas : TCanvas
  read FCanvas;

Description

Canvas is a read-only TCanvas property which provides access to the drawing surface used for the control. The class implementation actually uses a TControlCanvas instance in the member.

Canvas is used in methods like DrawItem, and in private methods which handle the LM_DrawListItem message for the control. Canvas is also passed as an argument to methods in the ancestor class like PaintTo. Canvas can be useful in OnDrawItem event handler when used to render list items for the control.

See also

TCustomComboBox.Items

  

The list of items displayed in the combo-box control.

TCustomComboBox.DrawItem

  

Draws a list item, using the OnDrawItem handler (when assigned).

TCustomComboBox.OnDrawItem

  

Handler for special painting of an item (in owner-draw mode).

TWinControl.PaintTo

  

Paints the control using the handle for the widgetset class.

TCanvas

  

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

TControlCanvas

  

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


Version 3.2 Generated 2024-02-25 Home