sdak Posted January 27, 2006 Share Posted January 27, 2006 Firstly thanks for AutoIt !My question is :Howto display a bitmap in a button with a "transparent color" ormake a button with both, graphic and text ?sdakDevelop'it Link to comment Share on other sites More sharing options...
peter1234 Posted January 27, 2006 Share Posted January 27, 2006 (edited) Easiest way is to make a BMP with the same background color as your GUI. But, you can use a transparent region instead of a button. Search for transparent region in v3 Scripts and Scraps. Edited January 27, 2006 by peter1234 Link to comment Share on other sites More sharing options...
JoshDB Posted January 28, 2006 Share Posted January 28, 2006 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 More sharing options...
sdak Posted January 28, 2006 Author Share Posted January 28, 2006 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_LAYEREDbut the window refuse to open when I use it.SebastienDevelop'it Link to comment Share on other sites More sharing options...
peter1234 Posted January 30, 2006 Share Posted January 30, 2006 See JoshDB post:http://www.autoitscript.com/forum/index.ph...ndpost&p=102496 Link to comment Share on other sites More sharing options...
JoshDB Posted January 31, 2006 Share Posted January 31, 2006 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 More sharing options...
Moderators SmOke_N Posted January 31, 2006 Moderators Share Posted January 31, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now