Re: using keys in windows

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

procedure do_arrow_key( integer key, integer shift )
if key = VK_LEFT  then  --do whatever...
if key = VK_UP then  -- do whatever else...
if key = VK_RIGHT then  -- do this...
if key = VK_DOWN then  -- do the last...
onKeyDown[ control_with_focus ] = routine_id("do_arrow_key")

> Does anyone know how to use the arrow keys with win32lib
> I've tried onKeyPress, and onKeyDown but can't get it to work
> any suggestions would be great help.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu