eHrgo Posted July 5, 2007 Share Posted July 5, 2007 Hi guys, I have a little transparency problem:$Main=GUICreate("MyGui", 237, 67, -1, -1, $WS_POPUP, BitOR($WS_EX_TOPMOST,$WS_EX_LAYERED)) $Back=GUICtrlCreatePic(@ScriptDir&'/GuiMain.gif', 0,0, 0,0) GUICtrlSetState($Back, $GUI_DISABLE) ;$settings=GUICtrlCreatePic(@ScriptDir&'/GuiSettings.jpg',5,51,0,0) While 1 GUISetState(@SW_SHOW) Sleep(100) WendoÝ÷ ÙhØb²+e¢,)h!¶Úþ-t¶)ò¦'¢oø§goÉÈéø¦«¢+ØÀÌØí5¥¸õU% ÉÑ ÅÕ½Ðí5åÕ¤ÅÕ½Ðì°ÈÌÜ°ØÜ°´Ä°´Ä°ÀÌØí]M}A=AU@° ¥Ñ=H ÀÌØí]M}a}Q=A5=MP°ÀÌØí]M}a}1eI¤¤(ÀÌØí ¬õU% Ñɱ ÉÑA¥¡MÉ¥ÁѥȵÀìÌäì½Õ¥5¥¸¹¥Ìäì°À°À°À°À¤)U% ÑɱMÑMÑÑ ÀÌØí ¬°ÀÌØíU%}%M 1¤((ÀÌØíÍÑÑ¥¹ÌõU% Ñɱ ÉÑA¥¡MÉ¥ÁѥȵÀìÌäì½Õ¥MÑÑ¥¹Ì¹©ÁÌäì°Ô°ÔÄ°À°À¤()]¡¥±Ä(%U%MÑMÑÑ¡M]}M!=¤(%M±À ÄÀÀ¤)]¹With this, like that:See arrows for bugs..__________________________________________But i want it to look like:Its kind of weird.. Just by adding this line, my whole transparency of the previous picture disapear...I keep trying to superpose those 2 GuiCtrlCreatePic because I need the second one to be a button.Thanks a lot§ Sorry for my Bad English. Link to comment Share on other sites More sharing options...
eHrgo Posted July 6, 2007 Author Share Posted July 6, 2007 Hum... Maybe it wasn't a good idea to create this topic here. I figured out where does the problem come from: The transparency seems to only be applied to the second GuiCtrlCreateGraphic...Why? How can I avoid this? If I can't, Is there any other way to define a part of the picture as a button? Thanks Sorry for my Bad English. Link to comment Share on other sites More sharing options...
eHrgo Posted July 6, 2007 Author Share Posted July 6, 2007 Problem semi solved by using GUICtrlCreateButton("", 5, 51, 92, 16, $BS_BITMAP) GUICtrlSetImage ( -1, @ScriptDir&'/GuiSettings.bmp' ) Sorry for my Bad English. Link to comment Share on other sites More sharing options...
martin Posted July 6, 2007 Share Posted July 6, 2007 Problem semi solved by using GUICtrlCreateButton("", 5, 51, 92, 16, $BS_BITMAP) GUICtrlSetImage ( -1, @ScriptDir&'/GuiSettings.bmp' ) Maybe you could get some ideas from lod3n's script and PauliA's clock How do you get it to work at all if you use @ScriptDir&'/GuiSettings.bmp' instead of @ScriptDir&'\GuiSettings.bmp' ? This GUI Help forum is a bit quiet compared to the General Help one. A lot of people post GUI questions there. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
eHrgo Posted July 6, 2007 Author Share Posted July 6, 2007 How do you get it to work at all if you use@ScriptDir&'/GuiSettings.bmp'instead of@ScriptDir&'\GuiSettings.bmp'?Hum.. I don't kow, but it works !Thanks for those two example Sorry for my Bad English. 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