I may be able to figure it out from that. Thanks.
The below code is trapping every key down code then examinging it to see
if its vChrPageUp.
Was hoping POL would encapsulate this a bit, but if I have to I can work
from this.
So if anyone has done it in POL, I'd love to see it. Thanks!
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/