Re: Displaying and image w/ the touch of a button
- Posted by Irv Mullins <irvm at ellijay.com> Mar 17, 2001
- 425 views
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