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

TdxNavBarCustomDrawEvents.NavigationPaneOverflowPanel Event

In This Article

Enables you to custom paint the navigation pane’s overflow panel.

#Declaration

Delphi
property NavigationPaneOverflowPanel: TdxNavBarCustomDrawEvent read; write;

#Remarks

The Sender parameter identifies the NavBar control whose panel is to be painted.

The ACanvas parameter represents the painting surface.

The control’s ViewInfo information is passed as the AViewInfo parameter which is actually of the TdxNavBarOffice11NavPaneViewInfo type. This object provides the following properties which are useful when custom painting.

Property Description
OverflowPanelRect Returns the overflow panel’s bounding rectangle.
OverflowPanelItemCount Returns the number of icons within the overflow panel.
OverflowPanelSignRect Returns the bounding rectangle for the sign that invokes the built-in context menu.

Additionally, you can access the HotPart and PressedPart properties of the TdxNavBar.Controller property to determine which elements are currently pressed or hot-tracked.

You should set the AHandled parameter to True to prohibit default painting after the event handler’s execution. Otherwise, the control will paint the overflow panel using the default painting mechanism.

See Also