Sure, just intercept the keys before you give them to the OS.

You could place a prehandler function call before you pass an event to the
system and use the prehandler to return true if any of the hard keys (or
silkscreen keys) are pressed.


AppEventLoop()
{
do
    {
    EvtGetEvent()
        if(!PreHandler(event))
            if(!SysHandleEvent(Event))
                if(!MenuHandleEvent(event))
                    if(!AppHandleEvent(event))
                        FrmDispatchEvent(event)
    }
}

PreHandler(event)
{
    if((event == keyDownEvent) && event.data.keydown.modifiers &
commandKeyMask))
        {
        // Now look for the specific keys in event.data.keyDown.chr
        findChr
        pageUp
        pageDown
        // Look in chars.h for the rest of the keys
        }
}
-----Original Message-----
From: Silvia Brunet <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, June 07, 1999 5:25 PM
Subject: Locking Application


>I need to be able to lock all the buttons in my palm, so that for the user
>of my application
>the only thing that exists is my program and the hotsync functionality.
>The user should see
>my application at all times, after a sync, after power on, etc...
>Is this possible?
>
>Thanks for you time.
>
>Silvia
>
>


Reply via email to