Re: Win32lib code, sorta doesnt work, or does it?

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

Kinda, Isnt there a way to set unfocus the button and set the focus to the
main window or just to the bitmap window?(I have been reading the docs,
seams like it would work...)

J Reeves
Grape Vine
ICQ# 13728824

>From: David Cuny <dcuny at LANSET.COM>
>Reply-To: Euphoria Programming for MS-DOS <EUPHORIA at LISTSERV.MUOHIO.EDU>
>To: EUPHORIA at LISTSERV.MUOHIO.EDU
>Subject: Re: Win32lib code, sorta doesnt work, or does it?
>Date: Mon, 6 Mar 2000 18:24:46 -0800
>
>"Grape Vine" wrote:
>
>
> > I need some one to, tweek, this...
>
>The problem is probably that the controls grab focus of the keys away from
>the game. You might have to hack the code a bit. Perhaps something like:
>
>1. Create a hidden control (positioned at {100,-100}). Trap key events
>going
>to this control.
>
>2. After a toolbar button (or any other control) is clicked, restore focus
>back to the hidden control.
>
>3. If you want, you can freeze the gameplay when the hidden control loses
>focus.
>
>4. Similar to the Editor_KeyHandler routine in IDE_EDIT, you may want to
>call:
>
>    returnValue( True )
>
>at the end of your key handling routine, so that the hidden control doesn't
>actually process any keystrokes.
>
>Hope this helps!
>
>-- David Cuny


J Reeves
Grape Vine
ICQ# 13728824

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu