Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsTab.Image2 Property

Defines the second graphic displayed in the tab along the right side/bottom.

Syntax

Get
VBSet refImageObj = object.Image2 As SftPictureObject
Put
VBobject.Image2 = refImageObj As SftPictureObject

object

A SftTabsTab object.

refImageObj

Defines the second graphic displayed in this tab.

Comments

The Image2 property defines the second graphic displayed in the tab along the right side/bottom.

Unlike the SftTabsTab.Image property, the graphic defined by the Image2 property is always displayed at the right side of the tab (or bottom, depending on tab style), which cannot be changed. The graphic is rendered to the right (bottom) of the tab text/image. The distance is defined using the Image2GapPix property.

The Image2 property defines the default graphic for the second graphic. The Image2Active property defines the second graphic for the active tab. The Image2Disabled property is used when the tab is disabled (see SftTabsTab.Enabled). The Image2Hot property is used for flyby highlighting.

When the SftTabsTab.CloseButton property is set to True to support a tab close button, the Image2 property and the associated Image2Active, Image2Disabled, Image2Hot and Image2GapPix are set using predefined images/values and cannot be used for any other purposes.

Example

Private Sub Form_Load()
    With SftTabs1.Direct
    .Tab(0).Image2.LoadImage App.Path & "\sample.gif", True
    .Tab(0).Image2Active.Image = .Tab(0).Image2.Image
    .Tab(1).Image2.Image = .Tab(0).Image2.Image
    .Tab(1).Image2Active.Image = .Tab(1).Image2.Image
    .Tab(0).Image2Hot.LoadImage App.Path & "\sample2.gif", True
    .Tab(1).Image2Hot.Image = .Tab(0).Image2Hot.Image
    End With
End Sub

See Also SftTabsTab Object | Object Hierarchy


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