Jump to content

Howto display a bitmap in a button with a transparent color


sdak
 Share

Recommended Posts

Add $WS_LAYERED to your GUI properties. The color of the top-left pixel of the GUI will be made transparent throughout the GUI, including buttons, text, etc.

I recommend making if FF00FF, or pure red or something like that.

Ha, I haven't been on these forums since... 2006, almost. Behold, my legacy signature:My AutoIt idol is Valuater. You know you love him, too.My Stuff: D&D AGoT Tools Suite
Link to comment
Share on other sites

Add $WS_LAYERED to your GUI properties. The color of the top-left pixel of the GUI will be made transparent throughout the GUI, including buttons, text, etc.

I recommend making if FF00FF, or pure red or something like that.

Thanks for the answer (also peter1234) !

Please, can you give us a example, because I can't find propertie $WS_LAYERED, I use $WS_EX_LAYERED

but the window refuse to open when I use it.

Sebastien

Develop'it

Link to comment
Share on other sites

Yes, that's one example. Another is here:

$gamegui = GUICreate("QBC", 1280, 1024, -1, -1, $WS_POPUP + $WS_SYSMENU + $WS_MINIMIZEBOX, $WS_EX_LAYERED)

A good tip to all: "$WS_POPUP + $WS_SYSMENU + $WS_MINIMIZEBOX" will remove a windows title and sidebars.

Ha, I haven't been on these forums since... 2006, almost. Behold, my legacy signature:My AutoIt idol is Valuater. You know you love him, too.My Stuff: D&D AGoT Tools Suite
Link to comment
Share on other sites

  • Moderators

Should use the BitOr() rather than the '+'

$gamegui = GUICreate("QBC", 1280, 1024, -1, -1, BitOR($WS_POPUP, $WS_SYSMENU, $WS_MINIMIZEBOX), $WS_EX_LAYERED)
I know the Help file had/has an example using the '+'

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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