Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsTab.Text Property

Defines the tab's text.

Syntax

Get
VBText = object.Text As String
Put
VBobject.Text = Text As String

object

A SftTabsTab object.

Text

Defines the tab text used for the tab described by object.

Comments

The Text property defines the tab's text.

Multi-line tab text can be defined by using CR-LF (carriage return, line-feed) characters.

The tab height and width are automatically adjusted to display the complete tab text and graphic.

Tab controls styles (see Style property) which display tab text using a rotated font (i.e., a vertical tab control) do not support multi-line tab text.

The display and alignment of the tab's text and graphic component can be defined using the Tab.Align property.

Example

Private Sub Form_Load()
    Dim TabIndex As Integer
    With SftTabs1
        .Tabs.Clear
        TabIndex = .Tabs.Add("First Tab")
        TabIndex = .Tabs.Add("Second Tab")
        .Tab(TabIndex).Text = "Second Tab (modified)"
        .Tab(TabIndex).ToolTip = "The Second Tab Was Modified"
    End With
End Sub

See Also SftTabsTab Object | Object Hierarchy


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