Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsTab.Picture Property

Defines the graphic displayed in the tab.

Syntax

Get
VBSet refPictureObj = object.Picture As IPictureDisp
Put
VBobject.Picture = refPictureObj As IPictureDisp
PutRef
VBSet object.Picture = refPictureObj As IPictureDisp

object

A SftTabsTab object.

refPictureObj

A reference to a Picture object. Only bitmaps and icons are supported.

Comments

The Picture property defines the graphic displayed in the tab.

While the Picture property continues to be supported, the Image property should be used instead. If the Image property defines an image, the Picture property has no effect.

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

If a bitmap is used, the top, left pixel of each image must contain the background color. This color will be replaced by the tab's actual background when the bitmap is displayed.

Example

Private Sub Form_Load()
    Dim TabIndex As Integer
    Dim PicObject As StdPicture
    Set PicObject = LoadPicture("..... yourpath ....\SftTabs OCX 6.5\Samples\Bitmaps\SftTabs.bmp")
    With SftTabs1
        .Tabs.Clear
        TabIndex = .Tabs.Add("First Tab")
        TabIndex = .Tabs.Add("Second Tab")
        Set .Tab(TabIndex).Picture = PicObject
        .Tab(TabIndex).Align = alignSftTabsRightGraph
    End With
End Sub

See Also SftTabsTab Object | Object Hierarchy


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