Sign in to follow this  
Followers 0
ShonGail

GUICtrlSetImage and GIF image

6 posts in this topic

Hello all :whistle:

Is it possible to use a .gif file into a button (GUICtrlCreateButton) ?

When i use a .bmp, no problem but a .gif file doesn't appear :/

Thank you :)

PS : it's not an animated gif

Share this post


Link to post
Share on other sites



As far as I know only bitmaps and icons are supported on buttons. It should be an easy matter to convert your gif to a bitmap.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

As far as I know only bitmaps and icons are supported on buttons. It should be an easy matter to convert your gif to a bitmap.

Yes it's easy but I would use a .gif image retrieved from a web page (with Inetget) to let my script standalone without files attached

But it's not a big problem ... I used icons from shell32.dll :)

Thank you for your response :whistle:

EDIT : and sorry for my english :)

Edited by ShonGail

Share this post


Link to post
Share on other sites

EDIT : and sorry for my english :)

Y'all talked gooder english than me! :whistle:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

GUICtrlCreateButton can use an icon or a bitmap but not a gif file.

You can convert your image after downloading it and before using it for your button. This means a conversion program will have to be available on the PC you are running the program every time you do this.

Why don't you download it beforehand on your PC, convert it, and then FileInstall it within your working program when you are compiling it? (Don't forget to delete the FileInstalled image after use it in your button to make everything nice and clean)

Good luck!

Share this post


Link to post
Share on other sites

GUICtrlCreateButton can use an icon or a bitmap but not a gif file.

You can convert your image after downloading it and before using it for your button. This means a conversion program will have to be available on the PC you are running the program every time you do this.

Why don't you download it beforehand on your PC, convert it, and then FileInstall it within your working program when you are compiling it? (Don't forget to delete the FileInstalled image after use it in your button to make everything nice and clean)

Good luck!

Hello ! You learn me the "fileinstall" existence :whistle:

I will use it the next time !

Thank you a lot :)

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  
Followers 0