fi3ldy Posted January 7, 2007 Share Posted January 7, 2007 Stuck, again ! Ok basically i have created a login form, which reads details from php which is grabbed from mysql. Now lets say i have 2 functions, LoggedIn and LoggedOut Func LoggedOut() $Status = "Logged Out" $showstatus = GUICtrlCreateLabel($Status, 10, 15, 200, 20) $username_form = GUICtrlCreateInput ("", 105, 123, 125, 19, '') $password_form = GUICtrlCreateInput ("", 105, 123, 125, 19, '') $submit = GUICtrlCreateButton ("Login", 55, 178, 80, 20) EndFunc Func LoggedIn() $Status = "Logged In" $showstatus = GUICtrlCreateLabel($Status, 10, 15, 200, 20) EndFunc Now the "logged in" and "logged out" text will just be overwritten but how do i remove the GUICrtlCreateInput (Login Boxes) and Login Button, as they stay behind the new text created when logged in, when you hover over, they appear through the new text... Thanks alot guys, any help would be appriciated! Thanks again, Danny Link to comment Share on other sites More sharing options...
Helge Posted January 7, 2007 Share Posted January 7, 2007 Use GUICtrlSetData to update the control and show and hide the controls using GUICtrlSetState. Link to comment Share on other sites More sharing options...
fi3ldy Posted January 7, 2007 Author Share Posted January 7, 2007 (edited) Use GUICtrlSetData to update the control and show and hide the controls using GUICtrlSetState.thanks. i read up on guictrlsetdata but had no luck with it, could i have an example? :SEDIT:!!!!! THANKS AOt, only needed to use GUICtrlSetState, works perfectly! LOVE U LOADS XXXX Edited January 7, 2007 by fi3ldy Link to comment Share on other sites More sharing options...
Helge Posted January 7, 2007 Share Posted January 7, 2007 Not really that hard if you read the descriptions for GUICtrlSetData. ControlId from the GUICtrlLabel goes in the first parameter while the new text goes in the second parameter. Hard ? Not really. $label = GUICtrlCreateLabel("", 10, 10, 200, 20) GUICtrlSetData($label, "new text") Link to comment Share on other sites More sharing options...
Helge Posted January 7, 2007 Share Posted January 7, 2007 Why have two labels on the very same spot when they do exactly the same thing...show text. It's like having two twins which only can say one sentence each, when you could have just have one guy instead which can speak an endless amount of sentences in basically any language. Make yourself some good habits from the start and cut down on the loving towards me until you do. Link to comment Share on other sites More sharing options...
fi3ldy Posted January 7, 2007 Author Share Posted January 7, 2007 (edited) Why have two labels on the very same spot when they do exactly the same thing...show text. It's like having two twins which only can say one sentence each, when you could have just haveone guy instead which can speak an endless amount of sentences in basically any language.Make yourself some good habits from the start and cut down on the loving towards me untilyou do.yeah your right and thanks for the help, appriciated! Edited January 7, 2007 by fi3ldy 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