Re: Machile level exception
- Posted by gbonvehi Jan 22, 2009
- 1068 views
Hi Don,
I'm at work again and forgot to upload the source yesterday, I'll hope not to forget tonight.
Meanwhile, did you tried setting a returnValue() to the keydown handler?
You may find this interesting (quoted from Win32Lib documentation):
Setting returnValue at any stage causes processing to stop at the step that the value was set in, and return that value to Windows. Example:
-- prevent Button1 from seeing any space bar keys procedure Button1_KeyDown( integer self, integer event, sequence parms) integer keycode integer shift keycode = parms[1] shift = parms[2] if keycode = VK_SPACE then -- set return value returnValue( w32True ) end if end procedure setHandler( Button1, w32HKeyDown, routine_id("Button1_KeyDown"))
By the way, the number for the keys are defined in w32Keys.e, VK_F5, VK_F6
Regards,
Guillermo