Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftPictureObject.Picture Property

Defines the image object using an OLE Picture object (IPictureDisp interface).

Syntax

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

object

A SftPictureObject object.

pPictureDisp

Defines the image object using an OLE Picture object.

Comments

The Picture property defines the image object using an OLE Picture object (IPictureDisp interface).

If the image is based on a bitmap, bitmap transparency is used.

The SftPictureObject.Type property is set to sftTypeIDispatch. The SftPictureObject.ActualHeight and SftPictureObject.ActualWidth properties reflect the image size.

Example

This example assigns an image from a PictureBox to the first tab.

Private Sub Form_Load()
     With SftTabs1.Direct
         Set .Tab(0).Image.Picture = Picture1.Picture
     End With
End Sub

See Also SftPictureObject Object | Object Hierarchy


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