Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsTab.Image Property

Defines the graphic displayed in the tab.

Syntax

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

object

A SftTabsTab object.

refImageObj

Defines the graphic displayed in this tab.

Comments

The Image property defines the graphic displayed in the tab.

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

The Image, ImageDisabled and ImageHot properties define the graphic displayed in the tab, depending on the tab's status. The images defined for one tab using the Image, ImageDisabled and ImageHot properties should be the same size.

If the Image property defines an image, the Picture property has no effect.

Example

This example adds an image, loaded from a file, to the first tab. The image is then copied to the second tab.

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

See Also SftTabsTab Object | Object Hierarchy


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