Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsTabs.MaxRows Property

Defines the maximum number of rows (only used when LayoutMode is set to 2-AutoFlow).

Syntax

Get
VBRows = object.MaxRows As Long
Put
VBobject.MaxRows = Rows As Long

object

A SftTabsTabs object.

Rows

Defines the maximum number of rows allowed, while recalculating the optimal tab layout (1-16). Set to 0 to allow any number of rows.

Comments

The MaxRows property defines the maximum number of rows (only used when LayoutMode is set to 2-AutoFlow).

The maximum number of rows must be smaller or equal to the number of available tabs, otherwise this property is ignored.

Example

Private Sub Form_Load()
    Dim Index As Integer
    With SftTabs1.Direct
        .Tabs.Clear
        Index = .Tabs.Add("First")
        .Tabs.Current = Index
        Index = .Tabs.Add("Second")
        Index = .Tabs.Add("Third")
        Index = .Tabs.Add("Fourth")
        Index = .Tabs.Add("Fifth")
        .Tabs.MinRows = 2
        .Tabs.MaxRows = 3
        .Tabs.LayoutMode = layoutModeAutoFlow
    End With
End Sub

See Also SftTabsTabs Object | Object Hierarchy


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