I finally managed to solved my problem, as I cryptically indicated in my followup. I was simply too high up in the event loop which of course meant that I didn't get all the keydown events to my handler-functions. Some of the virtual keydowns did go through though, due to something else entirely of course, but that was what was confusing me. I had several vchr* that worked in my eventhandling but not that particular one. So I was looking in all the wrong places for an answer.
Thanks,
Veronica


Alexandre Kazantsev wrote:
What I did to intercept the vchrFind among the other hard/silkscreen buttons
is the following:

   if ( event.eType == keyDownEvent )
   {
     if  ( TxtCharIsHardKey(event.data.keyDown.modifiers,
event.data.keyDown.chr)
             || event.data.keyDown.chr == vchrFind      // Find silkscreen
button
             || event.data.keyDown.chr == vchrLaunch  // Home silkscreen
button
         )
     {
        FrmDispatchEvent(&event);
        continue;
     }
   }

FrmDispatchEvent directs the process to the active form event handler and
the Find button event is handled there. The 'continue' skips all the system
processing in the app loop.

It was curiously enough to know that the Calculator button is considered a
hard key, not a silk screen button.

Hope it helps.



-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to