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 tab text and graphic alignment.
Get | |||
VB | Align = object.Align As SftTabsAlignConstants | ||
Put | |||
VB | object.Align = Align As SftTabsAlignConstants |
object
Align
Defines the alignment of the tab text and graphic for the tab described by object.
Align | Value | Description |
---|---|---|
alignSftTabsDefault | 0 | The tab text and tab graphic are centered vertically and horizontally. The tab graphic is displayed to the left of the tab text. |
alignSftTabsLeft | 1 | The tab text and tab graphic are centered vertically and left-aligned horizontally. The tab graphic is displayed to the left of the tab text. |
alignSftTabsRight | 2 | The tab text and tab graphic are centered vertically and right-aligned horizontally. The tab graphic is displayed to the right of the tab text. |
alignSftTabsTopGraph | 3 | The tab text and the required tab graphic are centered vertically and horizontally. The tab graphic is displayed above the tab text. |
alignSftTabsBottomGraph | 4 | The tab text and the required tab graphic are centered vertically and horizontally. The tab graphic is displayed below the tab text. |
alignSftTabsRightGraph | 5 | The tab text and the required tab graphic are centered vertically and horizontally. The tab graphic is displayed to the right of the tab text. |
The Align property defines the tab text and graphic alignment.
The terms "vertical" and "horizontal" alignment are relative to the orientation (or base line) of the font used for the tab control, not the orientation of the form containing the tab control.
The Align property must be defined after the Tab.Image property has been defined. The Align values alignSftTabsTopGraph, alignSftTabsBottomGraph, alignSftTabsRightGraph can only be used if a valid picture has been defined. Otherwise the property is reset to alignSftTabsDefault.
The alignment of tabs (entire tab rows) within the tab control is defined using the Tabs.Alignment property.
Private Sub Form_Load() Dim TabIndex As Integer Dim PicObject As StdPicture Set PicObject = LoadPicture("...path-to-bitmap...") With SftTabs1 .Tabs.Clear TabIndex = .Tabs.Add("First Tab") TabIndex = .Tabs.Add("Second Tab") Set .Tab(TabIndex).Picture = PicObject .Tab(TabIndex).Align = alignSftTabsRightGraph End With End Sub
See Also SftTabsTab Object | Object Hierarchy