TCustomdxBarSubItem.OnPaintBar Event
Occurs when drawing a bar at the left side of the submenu.
Declaration
property OnPaintBar: TdxBarPaintSubMenuBarEvent read; write;
Remarks
Handle this event to draw a bar based upon your specific needs. The Canvas parameter determines the drawing canvas. The R parameter specifies the drawing rectangle.
The following example illustrates how to draw a bar and fill it with a lime color.
Canvas.Brush.Color := clLime;
Canvas.FillRect(R);
See Also