Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsTab.ImageIndex Property

Defines the ImageList's image index used for the tab graphic.

Syntax

Get
VBImage = object.ImageIndex As Integer
Put
VBobject.ImageIndex = Image As Integer

object

A SftTabsTab object.

Image

The one-based index of the image to be used. To clear the image value, use -1.

Comments

The ImageIndex property defines the ImageList's image index used for the tab graphic.

While the ImageList and ImageIndex properties continue to be supported, the Image property should be used instead. If the Image property defines an image, the ImageList and ImageIndex properties have no effect.

The ImageIndex property and the ImageList property are used in combination to define the tab graphic for the tab.

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

If the tab's Image or Picture properties are defined, the ImageList and ImageIndex properties are ignored.

This property is not available at design-time.

Example

Private Sub Form_Load()
    Dim TabIndex As Integer
    With SftTabs1
        .Tabs.Clear
        TabIndex = .Tabs.Add("First Tab")
        Set .Tab(TabIndex).ImageList = yourImageListControl
        .Tab(TabIndex).ImageIndex = 1
        TabIndex = .Tabs.Add("Second Tab")
        Set .Tab(TabIndex).ImageList = yourImageListControl
        .Tab(TabIndex).ImageIndex = 2
    End With
End Sub

See Also SftTabsTab Object | Object Hierarchy


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