Sign in to follow this  
Followers 0

other event types not only on buttons - how to handle

1 post in this topic

For example I have a text input created by guictrlcreateinput and I want it to erase its text when clicked. How can I set such an event handle? GUICtrlSetOnEvent seem to do nothing on this control since its not a button.

Is there any possibility to check special events on controls like keypress or mousedown? I thought that maybe GUICtrlSetOnEvent function will return the id of control which was clicked for example and then I would be able o check that my input was clicked, but it doesn't work, because the @GUI_CTRLID is alway -7 wherever I click! :P

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