In the next version of my Scrabble-like game Crosswords I want to
allow users to move tiles from tray to board by writing words via
graffiti.  This has turned out to be quite easy, since it merely
requires responding to keyDownEvents.

But I'd also like to allow users to bring up the SysKeyboardDialog --
and I'd like it myself for working with characters like the German
umlaut vowels for which I don't know the graffiti strokes.

My question is: How?

When I tap on the keyboard area (the "abc" in the lower left corner of
the graffiti area) my app's call to EvtGetEvent retrieves a
penDownEvent, then a penUpEvent, and finally a keyDownEvent event
whose data.keyDown.chr field is keyboardAlphaChr (0x110).  But when I
pass the keyDownEvent to SysHandleEvent it eats it, presumably because
there's no active Field to be edited.  My form event handler never
sees any of these events.

I haven't tried trapping the event before SysHandleEvent has its
chance.  It feels like the wrong thing to do -- like something I'll be
debugging forever.

But is there any other way to respond to a user's attempts to bring up
the keyboard dialog when there isn't a Field in need of editing?

Has anyone done this before?  Any suggestions?

Thanks,

--Eric House

******************************************************************************
* From the desktop of: Eric House, [EMAIL PROTECTED]                            *
*     Check out Crosswords for PalmOS: <http://www.peak.org/~fixin/xwords>   *
*          "The instructions said 'Win98 or better' -- so I installed Linux" *
******************************************************************************

Reply via email to