Re: Problem with OnKeyDown in win32lib
- Posted by wolfgang fritz <wolfritz at KING.IGS.NET> May 31, 2000
- 677 views
Here's a silly example:
procedure do_Choice1(integer key)
if key=13 then setCheck(Choice1,1) setCheck(Choice2,0) setCheck(Choice3,0)
elsif key=#28 then setFocus(Choice2)
elsif key=#26 then setFocus(Button11) end if
end procedure
onKeyDown[Choice1] = routine_id("do_Choice1")
( 13, #28, and #26 translate to VK_RETURN, VK_DOWN, and VK_UP. )
( Choice1 is just a button )
Wolf

