TCustomListView.DrawItem procedure
Draws the specified list item with a given state.
Declaration
procedure DrawItem(AItem: TListItem; ARect: TRect;
AState: TOwnerDrawState)Arguments
AItem | List view item drawn in the method. |
ARect | TRect instance with the bounds for the list item. |
AState | Drawing state applied to the list item in the OnDrawItem event handler. Ignored when default drawing is performed for the list item. |
Description
Signals the OnDrawItem event handler (when assigned) to draw the list item. Calls the FillRect and TextOut methods in the control Canvas if the event handler has not been assigned.
DrawItem is called when a CN_DRAWITEM message us received and handled for the control.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
