Sign in to follow this  
Followers 0
Harald

Images on buttons

12 posts in this topic

I've been using bmp images on buttons for some time. But in windows vista the buttons look terrible. I wanted to change to transparent gif images, but when changing there isn't shown any images. Doesn't Autoit support transparent gif images?

Share this post


Link to post
Share on other sites



Yes, the GUI does support transparent Gifs. Post a sample script and Gif so we can see where the issue lies.


Who else would I be?

Share this post


Link to post
Share on other sites

By default the buttons will only accept bitmaps and icons.



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

'Scuse me. I did not know that on buttons. However, for the sake of the OP, I can say that you can use an image as a button.


Who else would I be?

Share this post


Link to post
Share on other sites

By default...

Then how do I get transparent gifs to work on buttons?

Share this post


Link to post
Share on other sites

Does anyone know? Is there any way to get images on buttons transparent? When I try to add a transparent gif, it won't add the photo to the button.

Share this post


Link to post
Share on other sites

Hmm... Didn't find any solution from that link. I need to know how to get transparent images on buttons. That one just explained how to get images on buttons, wich is no problem.

Share this post


Link to post
Share on other sites

I don't know a way but .... you could use an image instead of a button,and for effects you could use Valuater's _ControlHover() UDF.

You can use sceenshots of your GUI(with background), you can make nice images and replace the buttons by those.

GL;)

Share this post


Link to post
Share on other sites

Depending on how large the buttons are but you could create an icon with transparency and then use that on the button. Make sure you have the button style set for Icons (See Gui control styles in help) and set the image to your icon. I'm not sure how large an Icon Autoit will accept but you can go up to the maximum size (48 x 48 ???) at least 32 x 32. I know that you specify small medinm or large but I'm not sure of the actual sizes involved.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

there is an example here with ControlHover())

it is really good

http://www.autoitscript.com/fileman/users/valuater/PicButton.zip

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

there is an example here with ControlHover())

it is really good

http://www.autoitscript.com/fileman/users/valuater/PicButton.zip

8)

I agree 110% It does a great jo. I have it running in 2 scripts now and Im planning o adding it to more.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

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