Skip to main content

TdxNavBarViewInfo.TopScrollButtonState Property

Returns the current state of the top scroll bar button.

Declaration

property TopScrollButtonState: TdxNavBarObjectStates read;

Property Value

Type
TdxNavBarObjectStates

Remarks

Use the TopScrollButtonState property when handling the OnCustomDraw.TopScrollButton event. It enables you to distinguish between button states due to user actions. Thus, you can paint the button differently when it is hot-tracked, pressed or in the normal state.

The TopScrollButtonState property can return one of the following values.

Value Description
sHotTracked Indicates that the button is currently being hot-tracked.
sDisabled Indicates that the button is disabled. This can take place only when the VSToolBoxView View is applied to the control. In other Views, scroll buttons disappear when they are not needed.
sPressed Indicates that the button is currently being pressed.

Note

other values listed by the TdxNavBarObjectState enumeration are not available for the TopScrollButtonState property.

See Also