ChrisL Posted October 4, 2006 Share Posted October 4, 2006 Any ideas why creating a GUI with a transparrent gif which includes a lot of white, the white area appears mostly transparrent? #include <GUIConstants.au3> $Form1_1 = GUICreate("Fujifilm Monitoring Service", 471, 288, -1,-1, BitOR($WS_CAPTION, $WS_CLIPSIBLINGS)) $Fujitech = GUICtrlCreateButton("Fujitech", 48, 150, 120, 50, 0) GUICtrlSetFont(-1, 9, 400, 0, "Tahoma") $Printcare1 = GUICtrlCreateButton("Printcare1", 178, 150, 120, 50, 0) GUICtrlSetFont(-1, 9, 400, 0, "Tahoma") $Printcare2 = GUICtrlCreateButton("Printcare2", 312, 150, 120, 50, 0) GUICtrlSetFont(-1, 9, 400, 0, "Tahoma") $Comments = GUICtrlCreateButton("Comments", 104, 208, 120, 50, 0) GUICtrlSetFont(-1, 9, 400, 0, "Tahoma") $BatchPrint = GUICtrlCreateButton("Batch Print", 240, 208, 120, 50, 0) GUICtrlSetFont(-1, 9, 400, 0, "Tahoma") $bottom = GUICtrlCreateLabel("Stretch 2007 ish", 390, 273, 82, 17) GUICtrlSetFont(-1, 8, 400, 0, "Tahoma") GUICtrlSetTip(-1, "Its all cock...") $pic=GUICreate("", 409, 126, 37, 8, $WS_POPUP,BitOr($WS_EX_LAYERED,$WS_EX_MDICHILD),$Form1_1) $Pic1 = GUICtrlCreatePic(@TempDir & "\logo.gif", 0,0, 0,0, BitOR($SS_NOTIFY,$WS_GROUP)) GUISetState(@SW_SHOW,$pic) GUISetState(@SW_SHOW,$Form1_1) While 1 Sleep (1000) Wend [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
jvanegmond Posted October 4, 2006 Share Posted October 4, 2006 (edited) AutoIt takes the top-left pixel-color as the 'transparant color value'.It took me ages to figure this out.. I think it's a bug and have reported it but it turns out to be 'unreproducible'..Edit: Here's the file you should use: Please download it quickly, for I will remove it shortly..For those reading this at a later date, I have made the edges color 0xFF00FF and then AutoIt saw that color as the transparant one, I recommend to fix your solution you do the same. Edited October 4, 2006 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
ChrisL Posted October 4, 2006 Author Share Posted October 4, 2006 AutoIt takes the top-left pixel-color as the 'transparant color value'.It took me ages to figure this out.. I think it's a bug and have reported it but it turns out to be 'unreproducible'..Edit: Here's the file you should use: Please download it quickly, for I will remove it shortly..For those reading this at a later date, I have made the edges color 0xFF00FF and then AutoIt saw that color as the transparant one, I recommend to fix your solution you do the same.Thanks but is still doesn't work.All of the white is transparent, I don't want the white transparrent. [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
jvanegmond Posted October 4, 2006 Share Posted October 4, 2006 (edited) When i combine your script, with my logo, it works. The problem you are experiencing is probably somewhere located here:$Pic1 = GUICtrlCreatePic(@TempDir & "\logo.gif", 0,0, 0,0, BitOR($SS_NOTIFY,$WS_GROUP))$Pic1 = GUICtrlCreatePic(@ScriptDir & "\logo.gif", 0,0, 0,0, BitOR($SS_NOTIFY,$WS_GROUP))And place the logo in the same folder as the script. Edited October 4, 2006 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
ChrisL Posted October 4, 2006 Author Share Posted October 4, 2006 When i combine your script, with my logo, it works. The problem you are experiencing is probably somewhere located here: $Pic1 = GUICtrlCreatePic(@TempDir & "\logo.gif", 0,0, 0,0, BitOR($SS_NOTIFY,$WS_GROUP)) $Pic1 = GUICtrlCreatePic(@ScriptDir & "\logo.gif", 0,0, 0,0, BitOR($SS_NOTIFY,$WS_GROUP)) And place the logo in the same folder as the script. Funnily enough if I use a grey instead of your pink it seems to work, Thanks [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
jvanegmond Posted October 4, 2006 Share Posted October 4, 2006 Funnily enough if I use a grey instead of your pink it seems to work, ThanksBizar. You are welcome Chris. github.com/jvanegmond Link to comment Share on other sites More sharing options...
eHrgo Posted July 6, 2007 Share Posted July 6, 2007 This old post saved my life Thanks Sorry for my Bad English. Link to comment Share on other sites More sharing options...
jvanegmond Posted July 6, 2007 Share Posted July 6, 2007 This old post saved my life ThanksNo problem. I always thought someone would find this helpful! It took me quite some time to figure out what AutoIt behavior was on gif's exactly, as there was no fancy PNG shading and everything. github.com/jvanegmond 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