Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsTab.Visible Property

Defines whether the tab is visible.

Syntax

Get
VBBoolean = object.Visible As Boolean
Put
VBobject.Visible = Boolean As Boolean

object

A SftTabsTab object.

Boolean

Defines whether the tab is visible.

BooleanDescription
TrueThe tab is visible.
FalseThe tab is hidden.

Comments

The Visible property defines whether the tab is visible.

A hidden tab is never displayed. All its associated controls are completely hidden also and the user cannot make the tab visible. Only the application can make a hidden tab visible. This is not equivalent to a tab that is currently not visible because the tab may have scrolled off the edge of the control. Such a tab still has a Visible property of True, but may currently not be visible to the end-user.

A hidden tab cannot be made the currently active tab. The Tabs.Current property and the mouse and keyboard interface will not allow a hidden tab to become the active tab.

Hidden tabs are best used in situations where certain groups of users should not have access to all tabs of a tab control, without being aware that additional tabs may exist. Otherwise, disabling a tab is possible using the Tab.Enabled property. A disabled tab is still visible to the end user.

Example

Private Sub Form_Load()
    Dim TabIndex As Integer
    With SftTabs1
        .Tabs.Clear
        TabIndex = .Tabs.Add("First Tab")
        .Tabs.Current = TabIndex
        TabIndex = .Tabs.Add("Hidden Tab")
        .Tab(TabIndex).Visible = False
        TabIndex = .Tabs.Add("Third Tab")
    End With
End Sub

See Also SftTabsTab Object | Object Hierarchy


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