from the palm SDK

      modifiers 0, or one or more of the following values:
      shiftKeyMask Graffiti is in case-shift mode.
      capsLockMask Graffiti is in cap-shift mode.
      numLockMask Graffiti is in numeric-shift mode.
      commandKeyMask The Graffiti glyph was the menu command glyph or a
virtual key code.
      optionKeyMask Not implemented. Reserved.
      controlKeyMask Not implemented. Reserved.
      autoRepeatKeyMask Event was generated due to auto-repeat.
      doubleTapKeyMask Not implemented. Reserved.
      poweredOnKeyMask The key press caused the system to be powered on.
      appEvtHookKeyMask  System use only.
      libEvtHookKeyMask System use only.

> A bit more on this.
>
> POL has an event handler like so:
>
> EVENT_MAP_KEY_DOWN_ENTRY(<Character code>, <Command modifier>, <Event
handler>)
>
> So I assuming the character code I want is 'vChrPageDown' and 'vChrPageUp'
> but what is the command modifier to properly catch?
>
>
>
> On Thu, 16 Dec 2004, Manpreet Singh wrote:
>
> > if this code give some idea.....
> >
> >
> >   case keyDownEvent:
> >    if (TxtCharIsHardKey(event->data.keyDown.modifiers,
> > event->data.keyDown.chr))
> >    {
> >     TblReleaseFocus(ToolsGetObjectPtr(EditTable));
> >     TopContractVisibleRecord = 0;      // Same as when app switched to
> >     CurrentFieldIndex = noFieldIndex;
> >     FrmGotoForm (ListView);
> >     return (true);
> >    }
> >    else if (EvtKeydownIsVirtual(event))
> >    {
> >     switch (event->data.keyDown.chr)
> >     {
> >      case vchrPageUp:
> >       PrvEditScroll (winUp);
> >       handled = true;
> >       break;
> >
> >      case vchrPageDown:
> >       PrvEditScroll (winDown);
> >       handled = true;
> >       break;
> >
> >      case vchrNextField:
> >       PrvEditNextField (winDown);
> >       handled = true;
> >       break;
> >
> >      case vchrPrevField:
> >       PrvEditNextField (winUp);
> >       handled = true;
> >       break;
> >
> >      case vchrSendData:
> >       // Make sure the field being edited is saved
> >       frmP = FrmGetActiveForm ();
> >       tableP = ToolsGetFrmObjectPtr(frmP, EditTable);
> >       TblReleaseFocus(tableP);
> >
> >       handled = true;
> >       break;
> >
> >      default:
> >       break;
> >     }
> >    }
> >
> >    break;
> >
> >
> > > Hello,
> > >
> > > Does anyone know how to capture the Treo (or tungsten C or any other
> > > device for that matter) scroll button events?
> > >
> > > I'd like to tie in the scroll button's on the device to my scroll bars
in
> > > my POL C++ application.
> > >
> > > thank you,
> > >
> > > Glenn Ford
> > > Software Engineer
> > > PubMed On Tap (Palm & PocketPC apps to search 11+ million records)
> > > http://archive.nlm.nih.gov/proj/pmot/pmot.php
> >
> >
> >
> >
>
>
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>
>



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

Reply via email to