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 image object using an OLE Picture object (IPictureDisp interface).
Get
Put
PutRef
object
A SftPictureObject object.
pPictureDisp
Defines the image object using an OLE Picture object (IPictureDisp interface). For information about picture properties, please visit the applicable section "Using SftTree/OCX with ...".
The Picture property defines the image object using an OLE Picture object (IPictureDisp interface).
Typically, .NET applications use the NETImageObject property to define an image, C and C++ applications use BitmapHandle or Image, VB6 and other COM applications use the Picture property.
The SftPictureObject.Type property is set to sftTypeIDispatch. The SftPictureObject.ActualHeight and SftPictureObject.ActualWidth properties reflect the image size.
AxSftTree1.get_Item(ItemIndex).LabelImage = Img AxSftTree1.get_Item(ItemIndex).RowHeader.Image = Img End If End Sub Private Sub UpdatePictures(ByVal ItemIndex As Integer, ByVal IPic As stdole.IPictureDisp, ByVal Align As SftTreeHAlignConstants) Dim C As SftTreeCell C = AxSftTree1.get_Cell(ItemIndex, 0) C.Image.Picture = IPic C.ImageHAlign = Align PropagateImage(ItemIndex, C.Image) End Sub Private Sub UpdateImages(ByVal ItemIndex As Integer, ByVal Img As Image, ByVal Align As SftTreeHAlignConstants) Dim C As SftTreeCell C = AxSftTree1.get_Cell(ItemIndex, 0)
SftTree1.Item(ItemIndex).LabelImage = Img SftTree1.Item(ItemIndex).RowHeader.Image = Img End If End Sub Private Sub UpdatePictures(ByVal ItemIndex As Integer, ByVal Pic As StdPicture, ByVal Align As SftTreeHAlignConstants) Dim C As SftTreeCell Set C = SftTree1.Cell(ItemIndex, 0) Set C.Image.Picture = Pic C.ImageHAlign = Align PropagateImage ItemIndex, C.Image End Sub Private Sub UpdateImages(ByVal ItemIndex As Integer, ByVal Pic As LONG_PTR, ByVal Align As SftTreeHAlignConstants) Dim C As SftTreeCell Set C = SftTree1.Cell(ItemIndex, 0)
axSftTree1.get_Item(ItemIndex).LabelImage = Img; axSftTree1.get_Item(ItemIndex).RowHeader.Image = Img; } } private void UpdatePictures(int ItemIndex, stdole.IPictureDisp IPic, SftTreeHAlignConstants Align) { SftTreeCell C = axSftTree1.get_Cell(ItemIndex, 0); C.Image.Picture = IPic; C.ImageHAlign = Align; PropagateImage(ItemIndex, C.Image); } private void UpdateImages(int ItemIndex, Image img, SftTreeHAlignConstants Align) { SftTreeCell C = axSftTree1.get_Cell(ItemIndex, 0);
See Also SftPictureObject Object | Object Hierarchy