Jump to content

Image from imagelist


Lars
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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

When the words fail... music speaks.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...