TCustomListBox.DrawItem procedure
Paints an item in owner-draw mode.
Declaration
procedure DrawItem(Index: Integer; ARect: TRect; State: TOwnerDrawState)
; virtualArguments
Index | Ordinal position for the item drawn in the method. |
ARect | Canvas rectangle with the coordinate for the drawing operation. |
State | Drawing state for the item. |
Description
DrawItem is a procedure used to render an item in the list box
control using the owner-draw mode.
Item contains the ordinal position in Items for the item drawn in
the method.
ARect is a
TRect instance with the canvas coordinates
where the drawing operation is performed.
State contains the drawing state for the owner-drawn item.
DrawItem signals the OnDrawItem event handler (when assigned). An
internal default drawing method is used when the event handler has not been
implemented.
DrawItem is called when the LM_DrawListItem message is handled for the control.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
