Defines the picture object as an ImageList image.
| VB | object.SetImageList(ByVal ImageList As Object, ByVal ImageIndex As Integer) |
object
ImageList
An ImageList control (supporting the IImageList interface).
ImageIndex
The one-based index of the image in the ImageList control to be used as graphic.
The SetImageList method defines the picture object as an ImageList image.
SetImageList only supports ActiveX ImageList controls that offer an IImageList interface. GetImageListH and SetImageListH support a window handle based ImageList control (Common Controls).
The SftPictureObject.Type property is set to sftTypeImageList. The SftPictureObject.ActualHeight and SftPictureObject.ActualWidth properties reflect the image size.
This example adds the first image from an ImageList control to the first tab.
With SftTabs1.Direct .Tab(0).Image.SetImageList ImageList1, 1 End With
With SftTabsWizard.Direct.Tabs
.Current = .Current + 1
End With
End Sub
Private Sub PicTimer_Timer()
With SftTabsPics
LastPicture = LastPicture + 1
.Tab(0).Image.SetImageList ImageList1, LastPicture
If LastPicture > 16 Then LastPicture = 0
End With
End Sub
Private Sub PreviousButton_Click()
With SftTabsWizard.Direct.Tabs
.Current = .Current - 1See Also SftPictureObject Object | Object Hierarchy