Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftPictureObject.SetImageList Method

Defines the picture object as an ImageList image.

Syntax

VBobject.SetImageList(ByVal ImageList As Object, ByVal ImageIndex As Integer)

object

A SftPictureObject 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.

Comments

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.

Example

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

See Also SftPictureObject Object | Object Hierarchy


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