Skip to main content

TdxNavBarCustomDrawEvents.NavigationPaneOverflowPanel Event

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

Declaration

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