Jump to content

Recommended Posts

Posted

Hi does anybody know if I can use an image from an imagelist and show the image without having a listview?

Like GUICtrlCreatePic($imageList[2], bla bla ?

I couldn't find anything in the help or on the forum about this.

tnx.

Posted

Hi does anybody know if I can use an image from an imagelist and show the image without having a listview?

Like GUICtrlCreatePic($imageList[2], bla bla ?

I couldn't find anything in the help or on the forum about this.

tnx.

About what image list are you talking? If you talk about elements of an array, yes you can use:

Dim $ImageList[3] = [@WindowsDir & "\Gone Fishing.bmp",@WindowsDir & "\Greenstone.bmp",@WindowsDir & "\Coffee Bean.bmp"]
$GUI = GUICreate("EXAMPLE",150,150,-1,-1,0x80000000)
GUISetState()
For $INDEX = 0 To 2
    $IMG = GUICtrlCreatePic($ImageList[$INDEX],0,0)
    Sleep(3000)
    GUICtrlDelete($IMG)
Next
Posted (edited)

Hi does anybody know if I can use an image from an imagelist and show the image without having a listview?

Like GUICtrlCreatePic($imageList[2], bla bla ?

I couldn't find anything in the help or on the forum about this.

tnx.

This is not an ImageList, is an array. Edited by Yashied

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...