Sign in to follow this  
Followers 0
MooglePower

Disabling buttons once they've been clicked

4 posts in this topic

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!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Use this function, GUICtrlSetState, after the function the button calls has finished, or before the function starts.

Edited by snowmaker

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

Haha, I found it right as you posted. Thanks, though!

Use this function, GUICtrlSetState, after the function the button calls has finished.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0