Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsTab.Image2Hot Property

Defines the second graphic displayed in the tab along the right side/bottom, when the tab is highlighted due to flyby highlighting.

Syntax

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

object

A SftTabsTab object.

refImageObj

Defines the second graphic displayed in this tab, when the tab is highlighted due to flyby highlighting.

Comments

The Image2Hot property defines the second graphic displayed in the tab along the right side/bottom, when the tab is highlighted due to flyby highlighting.

The graphic defined by the Image2Hot 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 Image2, Image2Active, Image2Disabled 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.