Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsTab.Image2Disabled Property

Defines the second graphic displayed in the tab along the right side/bottom, when the tab is disabled.

Syntax

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

object

A SftTabsTab object.

refImageObj

Defines the second graphic displayed in this tab, when the tab is disabled.

Comments

The Image2Disabled property defines the second graphic displayed in the tab along the right side/bottom, when the tab is disabled.

A tab can be disabled using the Tab.Enabled property.

The graphic defined by the Image2Disabled 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, 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).Image2Disabled.Image = .Tab(0).Image2.Image
        .Tab(0).Enabled = False
    End With
End Sub

See Also SftTabsTab Object | Object Hierarchy


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