Jump to content
Sign in to follow this  
GioVit

Capture arrow keys in GUI as an event

Recommended Posts

GioVit

I'm trying to make a kind of masking input control and I want to know if I can detect when an arrow key is pressed inside an input box.

I know that I can use HotKeySet Function but I want to know if I can handle it Locally in the GUI Form as an event.

Thanks in advance

Share this post


Link to post
Share on other sites
Siao

Subclass the input box (Callback UDF), catch WM_KEYDOWN. Other than that, you can't.

Edited by Siao

"be smart, drink your wine"

Share this post


Link to post
Share on other sites
GioVit

Subclass the input box (Callback UDF), catch WM_KEYDOWN. Other than that, you can't.

Many Thanks I'll try it.

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.