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/
