Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsScrolling.Style Property

Defines the control's scrolling style.

Syntax

Get
VBStyle = object.Style As SftTabsScrollingStyleConstants
Put
VBobject.Style = Style As SftTabsScrollingStyleConstants

object

A SftTabsScrolling object.

Style

Defines the control's scrolling style.

StyleValueDescription
scrollSftTabsNone0The tab control is not scrollable.
scrollSftTabsAlwaysRight1The tab control is scrollable, always displays the scroll buttons and the scroll buttons are located on the right (or bottom).
scrollSftTabsAlwaysLeft2The tab control is scrollable, always displays the scroll buttons and the scroll buttons are located on the left (or top).
scrollSftTabsCondRight3The tab control is scrollable. Scroll buttons are only displayed if the user can scroll in at least one direction. Otherwise the scroll buttons are hidden. When displayed, scroll buttons are on the right (or bottom).
scrollSftTabsCondLeft4The tab control is scrollable. Scroll buttons are only displayed if the user can scroll in at least one direction. Otherwise the scroll buttons are hidden. When displayed, scroll buttons are on the left (or top).
scrollSftTabsHide5The tab control is scrollable. Scroll buttons are not displayed. An application can provide its own scrolling mechanism using the Scrolling.Scroll method.

Comments

The Style property defines the control's scrolling style.

Depending on the scrolling style defined using the Style property, certain other properties may no longer apply and are ignored. The property dialogs can be used to determine if a scrolling type supports certain properties.

Not all tab control styles (see Style property) support scrollable tabs. The property dialogs can be used to determine if a tab control style supports scrolling.

A scrollable tab control can only display one row of tabs. If the Style property is set to a value that defines a scrollable tab control, the Tabs.Rows property is automatically set to 1 and the Tabs.FillComplete property is set to False.

The Scrolling.ToolTipLeftButton and Scrolling.ToolTipRightButton properties can be used to define the scroll button ToolTips.

The Scrolling.ScrollDropped property returns whether the scroll buttons have been temporarily dropped because they are not necessary (scrolling is not possible).

Example

Private Sub Form_Load()
    With SftTabs1
        .Scrolling.Style = scrollSftTabsAlwaysLeft
        .Scrolling.FullSize = True
        .ClientArea = False
        .MakeNaturalSize
    End With
End Sub

See Also SftTabsScrolling Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.