SftTree/OCX 7.0

SftPictureObject.SetImageListH Method

Softel vdm, Inc.

Defines the picture object as an ImageList image.

Syntax       

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);

Delphi

procedure object.SetImageListH(ImageListWindow : Cardinal, ImageIndex : Smallint);

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.

Comments

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.

See Also  SftPictureObject Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com