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/

Reply via email to