Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsTabs.TextOnly Property

Defines whether the specified tab background color is used for tab text only.

Syntax

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

object

A SftTabsTabs object.

Boolean

Defines whether the specified tab background color (Tab.BackColor and BackColorActive) is used for tab text only.

BooleanDescription
TrueThe background color defined using Tab.BackColor and BackColorActive is only used for the tab text, not for the entire tab.
FalseThe background color defined using Tab.BackColor and BackColorActive is used for the entire tab.

Comments

The TextOnly property defines whether the specified tab background color is used for tab text only.

The TextOnly property affects all tabs and cannot be modified for individual tabs.

Example

Private Sub Form_Load()
    Dim TabIndex As Integer
    Dim TabObject As SftTabsLib.SftTabsTab
    With SftTabs1
        .Tabs.Clear
        .Tabs.TextOnly = True
        TabIndex = .Tabs.Add("First Tab")
        Set TabObject = .Tab(TabIndex)
        TabObject.BackColor = vbBlue
        TabObject.BackColorActive = vbBlue
        TabObject.ForeColor = vbWhite
        TabObject.ForeColorActive = vbWhite
        TabIndex = .Tabs.Add("Second Tab")
        Set TabObject = .Tab(TabIndex)
        TabObject.BackColor = vbRed
        TabObject.BackColorActive = vbRed
        TabObject.ForeColor = vbWhite
        TabObject.ForeColorActive = vbWhite
    End With
End Sub

See Also SftTabsTabs Object | Object Hierarchy


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