SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the layout mode of all tabs within the control.
Get | |||
VB | Style = object.LayoutMode As SftTabsTabsLayoutModeConstants | ||
Put | |||
VB | object.LayoutMode = Style As SftTabsTabsLayoutModeConstants |
object
Styletable
Name | Value | Description |
---|---|---|
layoutModeDistribute | 0 | Distribute - Distribute tabs equally among rows. All tabs are distributed among all rows, so each has about the same number of tabs. |
layoutModeFlow | 1 | Flow - Add as many tabs to front rows as possible. As tabs are added, they are added to the first row, until the space is exhausted, at which point the next row receives additional tabs. This mode uses the number of rows defined using the SftTabsTabs.Rows property. When the control is resized, the tabs are redistributed among the available rows. Dual-sided tab controls always distribute tabs equally among rows. |
layoutModeAutoFlow | 2 | AutoFlow - Add as many tabs to front rows as possible and update then number of rows when control is resized. As tabs are added, they are added to the first row, until the space is exhausted, at which point the next row receives additional tabs. This mode dynamically recalculates the number of rows required to fit all tabs, without clipping or dropping tab labels. The range of available rows can be limited using the SftTabsTabs.MinRows and SftTabsTabs.MaxRows properties. When the control is resized, the number of rows required is recalculated and the tabs are redistributed among the available rows. Dual-sided tab controls always distribute tabs equally among rows. |
The LayoutMode property defines the layout mode of all tabs within the control.
As tabs are distributed, the first row is the row containing the tab with tab index 0.
When using scrollable tabs, the LayoutMode property has no effect as scrollable tabs are limited to just one row.
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