Re: setHandler not works after chekBox ?
- Posted by DerekParnell (admin) Sep 08, 2010
- 1269 views
SergioGelli said...
Why the line
"setHandler(winMaster, w32HKeyUp, routine_id("onkeyUp"))"
does not work after changing the checkbox?
It doesn't work because clicking in the checkbox changes the keyboard's focus from the window to the checkbox, but the handler you have is only looking for KeyUp events that happen to the window.
Try this instead ...
setHandler(Screen, w32HKeyUp, routine_id("onkeyUp"))
This will cause the handler code to react to every KeyUp event regardless of which control has focus at the time.