Skip to main content

TdxBarCustomCombo.OnDrawItem Event

Occurs when a dropdown listbox item is to be displayed.

Declaration

property OnDrawItem: TdxBarDrawItemEvent read; write;

Remarks

Write an OnDrawItem event handler to draw items in a TdxBarCustomCombo dropdown list. An OnDrawItem event handler can add graphic elements to listbox items, or replace the text of the listbox item with graphics. OnDrawItem passes parameters to its event handler: AIndex specifies the index of the item in the Items array, ARect provides the coordinates for drawing, AState specifies item state.

See Also