Skip to main content

TdxNavBarCustomDrawEvents.TopScrollButton Event

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

Declaration

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