Jump to content
Sign in to follow this  

other event types not only on buttons - how to handle

Recommended Posts


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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.