TdxCustomListBoxReportLink.OnCustomDrawItem Event
In This Article
Occurs when drawing a specific item within a list box control.
#Declaration
Delphi
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. |
ABounds |
Specifies rectangle including borders for drawing. |
AClient |
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. |
AText |
Specifies horizontal text alignment within an item. |
AText |
Specifies vertical text alignment within an item. |
ADone | Determines whether the On |
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