SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the graphic displayed in the tab.
Get | |||
VB | Set refPictureObj = object.Picture As IPictureDisp | ||
Put | |||
VB | object.Picture = refPictureObj As IPictureDisp | ||
PutRef | |||
VB | Set object.Picture = refPictureObj As IPictureDisp |
object
refPictureObj
A reference to a Picture object. Only bitmaps and icons are supported.
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.
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