be sure to trap all the other keys too:

  [apps] [calc] [find] [menu] if you want them never to exit :P

also miscellaneous keys like GraffitiReference etc.

az.
--
Aaron Ardiri 
Lecturer                       http://www.hig.se/~ardiri/
University-College i G�vle     mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN       
Tel: +46 26 64 87 38           Fax: +46 26 64 87 88
Mob: +46 70 352 8192           A/H: +46 26 10 16 11

On Mon, 7 Jun 1999, Dave Lippincott wrote:

> 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