Re: Displaying and image w/ the touch of a button

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

From: <RedDan11 at AOL.COM>

>
> Well the change over from DOS to Windows has thrown me yet another curve.
My
> movement engine dosn't seem to be working.  I have simplified it and
> simplified it to see if I could find the problem and it has come down to
> this, displaying a single image by the press of a button (in this case
"i")
> In DOS this seemed to work fine, but not in windows.  The only problem I
can
> think of is that get_key may not be a windows command....

You're right, it isn't. Try onKeyPress.

Something like

procedure MyWin_onKeyPress (integer keycode, integer shift)
if keycode = VK_ESCAPE then ...do something
elsif keycode = VK_RETURN then ...do something else
end if
end procedure

onKeyPress[MyWin] = routine_id("MyWin_onKeyPress")

This is from memory - hope it is right.
Regards,
Irv

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

Search



Quick Links

User menu

Not signed in.

Misc Menu