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.NavigationPaneHeader Event

In This Article

Enables you to custom paint the navigation pane’s header section.

#Declaration

Delphi
property NavigationPaneHeader: TdxNavBarCustomDrawEvent read; write;

#Remarks

The Sender parameter identifies the NavBar control whose header 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. You can use this object’s HeaderRect property to obtain the rectangle in which to paint.

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

See Also