Spread 8.0 Documentation
ScrollBarTrack Property
Support Options
ActiveX Reference > ActiveX Properties > ScrollBarTrack Property

Glossary Item Box

ScrollBarTrack Property


See Also    DLL    Example

Applies To

fpSpread control

Description

Sets or returns whether the sheet scrolls when the user moves the scroll box.

Syntax

C++

long CSpreadSheet::GetScrollBarTrack( );
void CSpreadSheet::SetScrollBarTrack(long value);

Visual Basic

[form.]fpSpread.ScrollBarTrack[ = setting%]

Remarks

The following settings are available:

Setting Description Constant
0 - Off (Default) Columns and rows do not move as you move the scroll box ScrollBarTrackOff
1 - Vertical Rows move as you move the scroll box on the vertical scroll bar ScrollBarTrackVertical
2 - Horizontal Columns move as you move the scroll box on the horizontal scroll bar ScrollBarTrackHorizontal
3 - Both Columns and rows move as you move the scroll box on the horizontal or vertical scroll bar ScrollBarTrackBoth

This setting is applied to the entire workbook, including all sheets in the control.

By default, the sheet does not track the movement of the scroll box as you move the scroll box in the horizontal or vertical scroll bar. That is, the columns and rows do not move until you release the mouse button after you move the scroll box. Set the ScrollBarTrack property to a value other than 0 (Off) to make the columns and rows move in synchronization with the horizontal and vertical scroll box movement.

The ScrollBarTrack property does not have an effect unless you set the ScrollBars property to a value other than 0 (None).

Spread Designer

Choose the Book menu, then the Scroll Bars menu, select the Scroll Bars tab, and then choose an option in the Scroll Box Track group box in the Book Display Settings dialog.

Data Type

Integer (Enumerated)

See Also

Synchronizing the Scroll Box with Columns and Rows

ScrollBarExtMode, ScrollBarMaxAlign, ScrollBars, ScrollBarShowMax properties

DLL Correspondence

SSGetBool (SSB_HSCROLLBARTRACK, SSB_VSCROLLBARTRACK), SSSetBool (SSB_HSCROLLBARTRACK, SSB_VSCROLLBARTRACK) functions

Copyright © GrapeCity, inc. All rights reserved.