Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TCustomdxBarSubItem.OnPaintBar Event

In This Article

Occurs when drawing a bar at the left side of the submenu.

#Declaration

Delphi
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