MooglePower Posted March 1, 2010 Share Posted March 1, 2010 Howdy! I've been searching for this on a couple of different tutorials, but I need a quick answer because we're trying to push this program out as quickly as possible. I'm trying to figure out how to disable a button once it has been clicked. The program authenticates some login information against a server and it needs to not do it more than once. I just need to disable the button once it has been clicked; this could be accomplished by greying out the button or by some other means. Thank you very much! Link to comment Share on other sites More sharing options...
somdcomputerguy Posted March 1, 2010 Share Posted March 1, 2010 (edited) Use this function, GUICtrlSetState, after the function the button calls has finished, or before the function starts. Edited March 1, 2010 by snowmaker - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
MooglePower Posted March 1, 2010 Author Share Posted March 1, 2010 Nevermind. I found GUICtrlSetState at the $GUI_DISABLE flag. Thanks, though!Howdy!I've been searching for this on a couple of different tutorials, but I need a quick answer because we're trying to push this program out as quickly as possible. I'm trying to figure out how to disable a button once it has been clicked. The program authenticates some login information against a server and it needs to not do it more than once. I just need to disable the button once it has been clicked; this could be accomplished by greying out the button or by some other means. Thank you very much! Link to comment Share on other sites More sharing options...
MooglePower Posted March 1, 2010 Author Share Posted March 1, 2010 Haha, I found it right as you posted. Thanks, though!Use this function, GUICtrlSetState, after the function the button calls has finished. 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