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

In This Article

Enables you to paint top scroll buttons in a custom manner.

#Declaration

Delphi
property TopScrollButton: TdxNavBarCustomDrawEvent read; write;

#Remarks

The Sender parameter represents the event source (the NavBar control).

The ACanvas parameter provides the painting surface.

The bounding rectangle and the current state of the scroll button can be obtained via the AViewInfo parameter. You must use the TopScrollButtonRect and TopScrollButtonState properties of the obtained TdxNavBarViewInfo object for this purpose.

The AHandled parameter value specifies whether default painting is required. If you have painted the button in the event handler, set this parameter to True. Otherwise, the button will be painted in the default way, specified by the View applied.

See Also