Scrolls the tabs in a given direction.
| VB | object.Scroll(ByVal Direction As SftTabsScrollingDirectionConstants) |
object
Direction
Defines the desired scrolling direction.
| Direction | Value | Description |
|---|---|---|
| directionSftTabsLeft | 0 | The tabs are scrolled left (or up) by one position. |
| directionSftTabsRight | 1 | The tabs are scrolled right (or down) by one position. |
The Scroll method scrolls the tabs in a given direction.
Usually, the user clicks on the scroll buttons to scroll the scrollable tabs. The Scroll method can be used by an application to scroll tabs without user intervention. The tabs are scrolled by one position in the given direction.
The Scrolled event is not generated when the Scroll method is used.
If scrolling is not enabled, this method cannot be used. The Scrolling.Style property defines whether scroll buttons are available.
See Reorder Sample
' the mouse button was released
StartTabIndex = -1
End Sub
Private Sub ScrollTimer_Timer()
' While dragging, if we are on the first visible tab or if
' we approach the right edge of the tab control, the scroll
' timer will scroll the tabs in the given direction
SftTabs1.Scrolling.Scroll Direction
End Sub
Private Sub ClearImage()
' remove the insertion image and disable the scroll timer
Image1.Left = -1000
Image1.Top = -1000
DropTabIndex = -1See Also SftTabsScrolling Object | Object Hierarchy