snoopy Posted January 27, 2009 Share Posted January 27, 2009 Hi, how do i set : $Pic1 = GUICtrlCreatePic("C:\Users\Snoopy\Desktop\toontown%20awesome%20picture.jpg", 0, 0, 625, 441, 0) GUISetState(@SW_SHOW) as background........... IT goes all over my buttons -.- TNX Link to comment Share on other sites More sharing options...
FireFox Posted January 27, 2009 Share Posted January 27, 2009 @snoopy GuiCtrlSetState($pic, $GUI_DISABLE) Cheers, FireFox. Link to comment Share on other sites More sharing options...
snoopy Posted January 27, 2009 Author Share Posted January 27, 2009 @snoopyGuiCtrlSetState($pic, $GUI_DISABLE)Cheers, FireFox.Cheers Firefox btw whats the diference between GuiCtrlSetState() and GUISetState() Link to comment Share on other sites More sharing options...
Tomb Posted January 27, 2009 Share Posted January 27, 2009 Cheers Firefox btw whats the diference between GuiCtrlSetState() and GUISetState()GUISetState changes the state of a GUI window. GUICtrlSetState changes the state of a control such as a button or label or any GUI control at all those were just examples. Link to comment Share on other sites More sharing options...
snoopy Posted January 27, 2009 Author Share Posted January 27, 2009 GUISetState changes the state of a GUI window. GUICtrlSetState changes the state of a control such as a button or label or any GUI control at all those were just examples.was just wonderin because when i put it after guisetstate result:C:\Users\Snoopy\Desktop\test.au3(19,21) : WARNING: $pic: possibly used before declaration.GuiCtrlSetState($pic,~~~~~~~~~~~~~~~~~~~~^C:\Users\Snoopy\Desktop\test.au3(19,21) : ERROR: $pic: undeclared global variable.GuiCtrlSetState($pic,~~~~~~~~~~~~~~~~~~~~^code:#include <GUIConstants.au3>Global $f_Run = False, $f_AnyChecked = False$Pic1 = GUICtrlCreatePic(@ScriptDir&"\toontown%20awesome%20picture.JPG", 150, 0, 50, 50)Global $Form1 = GUICreate("Form1", 625, 444, 189, 146)Global $Credits = GUICtrlCreateButton("Credits", 0, 0, 153, 65, 0)GUICtrlSetFont(-1, 20, 400, 0, "MS Sans Serif")Global $MyButton1 = GUICtrlCreateButton("Start", 520, 0, 100, 30, 0)GUICtrlSetFont(-1, 15, 800, 0, "MS Serif")GUICtrlSetBkColor(-1, 0xFFFFE1)Global $CheckBox1 = GUICtrlCreateCheckbox("Jump", 520, 32, 100, 30, 0)Global $CheckBox2 = GUICtrlCreateCheckbox("Beg", 520, 72, 100, 30, 0)Global $CheckBox3 = GUICtrlCreateCheckbox("Say", 520, 112, 100, 30, 0)Global $CheckBox4 = GUICtrlCreateCheckbox("Roallover", 520, 160, 100, 30, 0)$Pic1 = GUICtrlCreatePic("C:\Users\Snoopy\Desktop\toontown%20awesome%20picture.jpg", 0, 0, 625, 441, 0)GUISetState($GUI_DISABLE)GuiCtrlSetState($pic, $GUI_DISABLE)............................................................... Link to comment Share on other sites More sharing options...
Tomb Posted January 27, 2009 Share Posted January 27, 2009 you named the control $Pic1 so it should be GuiCtrlSetState($pic1, $GUI_DISABLE) Link to comment Share on other sites More sharing options...
snoopy Posted January 27, 2009 Author Share Posted January 27, 2009 (edited) FIXED TNX Edited January 27, 2009 by snoopy Link to comment Share on other sites More sharing options...
snoopy Posted January 27, 2009 Author Share Posted January 27, 2009 FIXED TNXCheers Firefox , but no success at getting the checkboxes over the background :-X ? does it not aply to the full window? Link to comment Share on other sites More sharing options...
Tomb Posted January 27, 2009 Share Posted January 27, 2009 Cheers Firefox , but no success at getting the checkboxes over the background :-X ? does it not aply to the full window?create the pic before the checkboxes. Link to comment Share on other sites More sharing options...
FireFox Posted January 27, 2009 Share Posted January 27, 2009 (edited) @Tomb & @snoopy And set the state also before checkbox for example after guicreate Cheers, FireFox. Edited January 27, 2009 by FireFox Link to comment Share on other sites More sharing options...
snoopy Posted January 27, 2009 Author Share Posted January 27, 2009 @Tomb & @snoopyAnd set the state also before checkbox for example after guicreate Cheers, FireFox.Wooow Tnx FireFox, I am your No.1 fan ... works great Link to comment Share on other sites More sharing options...
Tomb Posted January 27, 2009 Share Posted January 27, 2009 this is my no. 1 fan 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