Jump to content

Images on buttons


Harald
 Share

Recommended Posts

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?

Link to comment
Share on other sites

By default the buttons will only accept bitmaps and icons.


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

Link to comment
Share on other sites

  • 2 weeks later...

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;)

Link to comment
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!"

Link to comment
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!"

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...