Charles Garcia-Tobin wrote:
> So is there any way of disabling the find button
> on the graffity area?

In the main event loop, scan for the keyDown event before SysHandleEvent
gets to process it. If the character is vchrFind, you skip the rest of the
event loop, effectively ignoring the find button.

For example:
-------------------------------------
static void EventLoop() {
Err error;
EventType event;

do {
    EvtGetEvent(&event, evtWaitForever);

    // Eat all find key events
    if (event.eType == keyDownEvent && event.data.keyDown.chr == vchrFind) {
        continue;
    }

    if (!SysHandleEvent(&event)) {
        if (!MenuHandleEvent(0, &event, &error)) {
            if (!ApplicationHandleEvent(&event))
                FrmDispatchEvent(&event);
            }
        }
    }
    while (event.eType != appStopEvent);
}
-------------------------------------


Regards
-Laurens



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

Reply via email to