TwilightN3ro Posted May 5, 2011 Posted May 5, 2011 Hey guys, Got a little problem with my gui... #include <GUIConstantsEx.au3> #include <StaticConstants.au3> $Form1 = GUICreate("Form1", 450,280,494, 283) $Pic1 = GUICtrlCreatePic("C:\Users\Gio\Desktop\Auto IT\Test script\background.jpg", 0, 2, 494, 283) ; Background image. GUICtrlSetState(-1, $GUI_DISABLE) $Pic2 = GUICtrlCreatePic("C:\Users\Gio\Desktop\Auto IT\Test script\start.jpg", -3, 247, 66, 29) ; Button 1 Start GUICtrlSetCursor(-1,0) GUICtrlSetState(-1, $GUI_DISABLE) $pic3 = GUICtrlCreatePic("C:\Users\Gio\Desktop\Auto IT\Test script\start2.png",115,247,66,29) ; button 2 Windows $pic4 = GUICtrlCreatePic("C:\Users\Gio\Desktop\Auto IT\Test script\start.jpg",245,247,66,29) ; Button 3 About $pic5 = GUICtrlCreatePic("C:\Users\Gio\Desktop\Auto IT\Test script\start.jpg",390,247,66,29) ; Button 4 exit $Label1 = GUICtrlCreateLabel(" ",-3, 98, 66, 29, BitOR($SS_CENTER,$SS_CENTERIMAGE)) GUICtrlSetBkColor(-1,$GUI_BKCOLOR_TRANSPARENT) GUICtrlSetCursor(-1,0) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Pic2, $Label1 EndSwitch WEnd So, @ $pic3, Im trying to put a image w/ Transparant background so it only shows the text, But it doesnt work, If i make a button ( So the background isnt transparant) It is working, Am i doing something wrong? Thanks in advance
smartee Posted May 5, 2011 Posted May 5, 2011 hi TwilightN3ro,Here's and to learn from/build on with transparency etc. It'll save you some work.Hope these help-smartee
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