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 picture object as an ImageList image.
VB.NET | object.SetImageListH(ByVal ImageListWindow As Integer, ByVal ImageIndex As Short) |
VB | object.SetImageListH(ByVal ImageListWindow As OLE_HANDLE, ByVal ImageIndex As Integer) |
C#.NET | void object.SetImageListH(int ImageListWindow, short ImageIndex); |
VC++ | HRESULT object->SetImageListH(OLE_HANDLE ImageListWindow, short ImageIndex); |
C | HRESULT object->raw_SetImageListH(OLE_HANDLE ImageListWindow, short ImageIndex); |
object
A SftPictureObject object.
ImageListWindow
An ImageList control handle.
ImageIndex
The one-based index of the image in the ImageList control to be used as graphic.
The SetImageListH method defines the picture object as an ImageList image.
The SftPictureObject.Type property is set to sftTypeImageListH. The SftPictureObject.ActualHeight and SftPictureObject.ActualWidth properties reflect the image size.
C.Image.NETImageObject = Img C.ImageHAlign = Align PropagateImage(ItemIndex, C.Image) End Sub Private Sub UpdateImageList(ByVal ItemIndex As Integer, ByVal ImageListControl As ImageList, ByVal i As Integer, ByVal Align As SftTreeHAlignConstants) Dim C As SftTreeCell C = AxSftTree1.get_Cell(ItemIndex, 0) C.Image.SetImageListH(ImageListControl.Handle.ToInt32(), i) C.ImageHAlign = Align PropagateImage(ItemIndex, C.Image) End Sub Private Sub UpdateColor(ByVal ItemIndex As Integer, ByVal Clr As System.Drawing.Color, ByVal Align As SftTreeHAlignConstants) Dim C As SftTreeCell C = AxSftTree1.get_Cell(ItemIndex, 0)
C.Image.NETImageObject = img; C.ImageHAlign = Align; PropagateImage(ItemIndex, C.Image); } private void UpdateImageList(int ItemIndex, ImageList ImageListControl, int i, SftTreeHAlignConstants Align) { SftTreeCell C = axSftTree1.get_Cell(ItemIndex, 0); C.Image.SetImageListH((int) ImageListControl.Handle, (short) i); C.ImageHAlign = Align; PropagateImage(ItemIndex, C.Image); } private void UpdateColor(int ItemIndex, System.Drawing.Color Clr, SftTreeHAlignConstants Align) { SftTreeCell C = axSftTree1.get_Cell(ItemIndex, 0);
C->Image->PutIconHandle((OLE_HANDLE)hIcon); C->ImageHAlign = Align; PropagateImage(ItemIndex, C->Image); } void CPicturesDlg::UpdateImageList(long ItemIndex, HIMAGELIST hImgList, short iImage, SftTreeHAlignConstants Align) { ISftTreeCellPtr C = m_vTree->Cell[ItemIndex][0]; C->Image->SetImageListH((OLE_HANDLE)hImgList, iImage); C->ImageHAlign = Align; PropagateImage(ItemIndex, C->Image); } void CPicturesDlg::UpdateColorSample(long ItemIndex, COLORREF Clr, SftTreeHAlignConstants Align) { ISftTreeCellPtr C = m_vTree->Cell[ItemIndex][0];
See Also SftPictureObject Object | Object Hierarchy