Thanks for the clue.
I used the KeySetMask function as shown below:

KeySetMask(~keysAllowedMask)
where I define
keysAllowedMask is (findChr | calcChr | launchChr | keyBitHard1 |
keyBitHard2 | keyBitHard3 | keyBitHard4 | keyBitPageUp | pageDownChr);

I even tried with this KeySetMask(~keyBitsAll   )
where
#define keyBitsAll   0xFFFFFFFF

This works great, however the Home button (launchChr) and Calculater button
(calcChr) can't be disabled.  Everytime I call alert form (using
FrmCustomAlert function), these 2 buttons still work.  As a result the
application is exited.

How do you intercept these 2 keyDownEvents for Home and Calculator buttons
from exiting application, specifically when you call alert form
(FrmCustomAlert)?

Any help is appreciated.

Thanks in advance.
Sol



"Aaron Ardiri" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
On 1/21/06, solsan <[EMAIL PROTECTED]> wrote:
> 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:

http://www.palmos.com/dev/support/docs/palmos/PalmOSReference/KeyManager.html

KeySetMask Function
Purpose
Specify which keys generate keyDownEvents.

you can look at the SDK examples - specifically the Reptoids example written
by Roger Flores. all games want to ignore these keys as well while they are
running. you can call KeySetMask() to disable the key events for
certain buttons;
and, then - the key event will never make it to the system as it isn't
generated :)

--
// Aaron Ardiri



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

Reply via email to