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

TdxBarCustomPopupMenu.OnPaintBar Event

In This Article

Occurs when drawing a bar at the left side of a popup menu.

#Declaration

Delphi
property OnPaintBar: TdxBarPaintSubMenuBarEvent read; write;

#Remarks

Write an OnPaintBar event handler to draw the left side bar.

Canvas specifies the drawing surface.

R specifies the rectangle for drawing.

The following example demonstrates you how to draw the bar and fill it with the color green.

Delphi
Canvas.Brush.Color := clGreen;
Canvas.FillRect(R);

See Also