Returns a SftTabsTab object given a tab index.
Get
| VB | Set refTabObj = object.Tab(ByVal TabIndex As Integer) As SftTabsTab |
object
TabIndex
The zero-based index of the tab to be accessed.
refTabObj
Returns a reference to the SftTabsTab object.
The Tab property returns a SftTabsTab object given a tab index.
The Tab property returns a SftTabsTab object for the desired tab TabIndex. The properties of the tab can be updated using the returned SftTabsTab object.
Private Sub Form_Load()
Dim TabIndex As Integer
Dim TabObject As SftTabsLib70.SftTabsTab
With SftTabs1.Direct
.Tabs.Clear
TabIndex = .Tabs.Add("First Tab")
Set TabObject = .Tab(TabIndex)
TabObject.BackColor = vbBlue
TabObject.BackColorActive = vbBlue
TabObject.ForeColor = vbWhite
TabObject.ForeColorActive = vbWhite
.Tabs.Add "Second Tab"
End With
End Sub
Call SftTabs1_Switched
End Sub
Private Sub SftTabs1_Switched()
With SftTabs1
' The tab page is now active
' Replace the tab picture with the image that shows that
' the page has now been visited
Set .Tab(.Tabs.Current).Image.Picture = Image1(.Tabs.Current)
' Update the form's title
Form1.Caption = .Tab(.Tabs.Current).Text & " Options"
End With
End Sub
Private Sub TabPos_Click()
With SftTabs1.Tab(SftTabs1.Tabs.Current)See Also SftTabs Object | Object Hierarchy