Re: Problem with OnKeyDown in win32lib

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu