Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabs.Tab Property

Returns a SftTabsTab object given a tab index.

Syntax

Get
VBSet refTabObj = object.Tab(ByVal TabIndex As Integer) As SftTabsTab

object

A SftTabs object.

TabIndex

The zero-based index of the tab to be accessed.

refTabObj

Returns a reference to the SftTabsTab object.

Comments

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.

Example

Private Sub Form_Load()
    Dim TabIndex As Integer
    Dim TabObject As SftTabsLib.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

See Also SftTabs Object | Object Hierarchy


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