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

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

"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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu