Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsTab.ImageList Property

Defines the ImageList used for the tab graphic.

Syntax

Get
VBrefImageListObj = object.ImageList As Object
Put
VBobject.ImageList = refImageListObj As Object
PutRef
VBSet object.ImageList = refImageListObj As Object

object

A SftTabsTab object.

refImageListObj

A reference to an ImageList object.

Comments

The ImageList property defines the ImageList 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 ImageList property and the ImageIndex 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.