Skip to main content

TdxCustomListBoxReportLink.OnCustomDrawItem Event

Occurs when drawing a specific item within a list box control.

Declaration

property OnCustomDrawItem: TdxCustomDrawItemEvent read; write;

Remarks

Write an OnCustomDrawItem event handler to draw a specific listbox item based on your specific requirements. The ACanvas parameter determines the drawing surface.

Parameter Description
ACanvas Determines canvas for drawing.
ABoundsRect Specifies rectangle including borders for drawing.
AClientRect Specifies rectangle excluding borders for drawing.
AText Determines text that is drawn within an item.
AFont Specifies the font.
AColor Specifies the background color of an item.
ATextAlignX Specifies horizontal text alignment within an item.
ATextAlignY Specifies vertical text alignment within an item.
ADone Determines whether the OnCustomDrawItem event handler entirely draws an item. If ADone is True, the default drawing procedure is not called.

In order to specify the color, font, text or alignment, used for drawing the header of a specific column, set proper values for the AColor, AFont, AText, ATextAlignX or ATextAlignY parameters and set ADone to False within the OnCustomDrawItem event handler.

See Also