Sign in Join
FPDoc Onlineexperiment

TFileListBox.OnDrawItem property

Member of TFileListBoxpublishedIn unit FileCtrl

Handler for painting of a list item in owner-draw mode.

Declaration

pascal
property OnDrawItem:;

Description

OnDrawItem is a TDrawItemEvent property with the event handler signalled to render a list item when an owner-drawn method is used in the Style property. OnDrawItem is signalled (when assigned) from the DrawItem method. DrawItem provides the arguments for the event handler.

An application should implement an object procedure to respond to the event notification. Use the Canvas for the control to get text metrics or render the control and any graphic images. An internal drawing routine which uses the Font, Color, Layout and Alignment in the control is called when OnDrawItem has not been assigned.

This description is the one of StdCtrls.TCustomListBox.OnDrawItem.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.