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

TCustomComboBox.DrawItem

Draws an item, using the OnDrawItem handler if one is installed.

Declaration

Source position: stdctrls.pp line 314

protected procedure TCustomComboBox.DrawItem(

  Index: Integer;

  ARect: TRect;

  State: TOwnerDrawState

); virtual;

Arguments

Index

  

The item to draw.

ARect

  

The area to paint in the Canvas.

State

  

The state of the item (selected...).

Description

Software emulation of OnDrawItem event, in OwnerDraw mode.

Calls the OnDrawItem handler, if installed. Otherwise default painting is performed (InternalDrawItem).

See also

TCustomComboBox.OnDrawItem

  

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

TDrawItemEvent

  

The handler type for painting a single item of owner-draw list and combo boxes.

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