Re: Tab Key question and Win32lib

new topic     » goto parent     » topic index » view thread      » older message » newer message

>I want to trap the tab key, VK_TAB, in onKeyPress[window] but it doesn't
>seem to be triggering. Does Windows or win32lib intercept the tab key
>when the control is a window before it gets to my routine?
>
>Thanks,
>
>Judith

I wanted to do this once, and posted to the list asking about it, but got no 
reply.  So here's what I resolved to do.

Create an mle text and position it just outside the window, so it is not 
visible (preferably to the top or left).  When the window recieves focus, 
set the focus to the mle text.  Then recieve key events from the mle text 
box.  Mle text boxes don't intercept the tab key when pressed, so you can 
detect when tab is pressed.

hope that helps,
Daryl van den Bink

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu