Re: Win32Lib: Keypress Issue
- Posted by Patrick Barnes <mrtrick at gmail.com> Aug 06, 2004
- 407 views
Escape isn't a printable key, so onKeyPress doesn't catch it. Try onKeyDown instead... On Thu, 05 Aug 2004 21:46:08 -0700, cklester <guest at rapideuphoria.com> wrote: > > posted by: cklester <cklester at yahoo.com> > > Derek, anything wrong with this code? 'cuz it ain't workin'. (I've > thrown the win_FullScreen up for display from another window > (win_Main), and now I want to press ESC to make it go away.) > > procedure win_FullScreen_onKeyPress (integer self, integer event, sequence > params)--params is ( int keyCode, int shift ) > if params[1] = VK_ESCAPE and fullScreenView then > fullScreenView = w32False > closeWindow( win_FullScreen ) > end if > end procedure > setHandler( Screen, w32HKeyPress, routine_id("win_FullScreen_onKeyPress")) > > -=ck > "Programming in a state of EUPHORIA." > http://www.cklester.com/euphoria/ > > > > -- MrTrick