Jump to content
Sign in to follow this  
Lars

Image from imagelist

Recommended Posts

Lars

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.

Share this post


Link to post
Share on other sites
Andreik

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

Share this post


Link to post
Share on other sites
Lars

Wow tnx,

Finally had time to continue this project :)

Saves me a lot of double coding..

tnx

Share this post


Link to post
Share on other sites
Yashied

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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.