Hi All,
I have a problem locking all the buttons in my handheld unit when I call
alert form or TimSecondsToDateTime function. I can lock all buttons for all
the forms, but the build in form from the palmOS. My goal is to lock all
buttons in all screens or forms. Below the snippet code for locking the
buttons in AppEventLoop subprocedure:
do
{
Boolean isCalc, isFind, hrd1, hrd2, hrd3, hrd4, isLaunch;
EvtGetEvent(&event, evtWaitForever);
isCalc = (event.eType == keyDownEvent)
&& (event.data.keyDown.chr == calcChr);
isFind = (event.eType == keyDownEvent)
&& (event.data.keyDown.chr == findChr);
hrd1 = (event.eType == keyDownEvent)
&& (event.data.keyDown.chr == hard1Chr);
hrd2 = (event.eType == keyDownEvent)
&& (event.data.keyDown.chr == hard2Chr);
hrd3 = (event.eType == keyDownEvent)
&& (event.data.keyDown.chr == hard3Chr);
hrd4 = (event.eType == keyDownEvent)
&& (event.data.keyDown.chr == hard4Chr);
isLaunch = (event.eType == keyDownEvent)
&& (event.data.keyDown.chr == launchChr);
if (isCalc || isFind || hrd1 || hrd2 ||
hrd3 || hrd4 || isLaunch || ! SysHandleEvent(&event))
if( !MenuHandleEvent (0, &event, &error))
if( !AppHandleEvent(&event) )
FrmDispatchEvent(&event);
} while (event.eType != appStopEvent);
Any clues or hints would be very appreciated.
Thanks in advance
Sol
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/