Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsTab.Enabled Property

Defines whether the tab is enabled.

Syntax

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

object

A SftTabsTab object.

Boolean

Defines whether the tab is enabled.

BooleanDescription
TrueThe tab is enabled.
FalseThe tab is disabled.

Comments

The Enabled property defines whether the tab is enabled.

A disabled tab is displayed using grayed tab text and the tab graphic (if based on a bitmap) is displayed in a grayed fashion. If the tab graphic is based on an icon, it is not grayed.

At run-time, a disabled tab cannot be made the currently active tab. The Tabs.Current property and the mouse and keyboard interface will not allow a disabled tab to become the active tab.

If a disabled tab is made the current tab at design-time, it will be made the active tab at run-time.

Disabled tabs are visible to the end user. To completely hide a tab and all its associated controls, the Tab.Visible property can be used instead.

Example

Private Sub Form_Load()
    Dim TabIndex As Integer
    With SftTabs1
        .Tabs.Clear
        TabIndex = .Tabs.Add("First Tab")
        TabIndex = .Tabs.Add("Disabled Tab")
        .Tab(TabIndex).Enabled = False
    End With
End Sub

See Also SftTabsTab Object | Object Hierarchy


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