Re: Win32Lib: Keypress Issue

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

Derek Parnell wrote:
> 
> cklester wrote:
> > 
> > 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"))
> > 
> 
> The code looks fine (and works here) so I guess the 'fullScreenView' is
> not being set correctly or is being set to w32False somewhere else.

I verified that fullScreenView is being set properly. I even used this:

> > 	if params[1] = VK_ESCAPE and w32True then

but it still doesn't work!

> Here is the code I used to test it...

Your code works, of course... :/ :)

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

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

Search



Quick Links

User menu

Not signed in.

Misc Menu