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

TDrawItemEvent

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

Declaration

Source position: stdctrls.pp line 250

type TDrawItemEvent = procedure(

  Control: TWinControl;

  Index: Integer;

  ARect: TRect;

  State: TOwnerDrawState

) of object;

Arguments

Control

  

The control to draw.

Index

  

Index of the item to draw.

ARect

  

The item rectangle in the Canvas.

State

  

Flags describing the item state to draw (selected...).