I take it from the response there are no Exit or Lost focus events for
fields.  If so, merely trapping other fields does not suffice.  I would have
to trap for all selectable objects, then test for
IsEqualToCurrentScanFieldId.  This is a lot of programming overhead for
every form with multiple objects.  What if on a global or application level,
I trap all PenDownEvents and test for:
<pseudo code>
if InScanMode && CurrentScanningFieldId !=0
{
    UInt16 FocusedObjId = GetFocusByObjId();
    if (CurrentScanningFieldId!=FocusedObjId)
        {

       PostFieldLostFocusEvent(CurrentScanningForm,CurrentScanningFieldId );
        }
}

Between the pseudo code example & trapping FormClose, would this be viable?

Thanks for your help!

"Ben Combee" <[EMAIL PROTECTED]> wrote in message
news:46646@palm-dev-forum...
>
> "OmniSoftSystems" <[EMAIL PROTECTED]> wrote in message
> news:46613@palm-dev-forum...
> >
> > Hello,
> >
> > Using a Visor 3.1 with Momentum scanner.  During the fldEnterEvent for
> > allowed fields, we turn on scanning.  Need an Exit or Lost focus event
> to
> > stop the scan mode and do housekeeping.  Any suggestions?
>
> Trap fldEnterEvents and frmCloseEvents.  (You may also want to check for
> a table event, if you're using fields in a table).  If the fldEnter
> event is for a non-scanning field, turn off your scanner.  Also turn it
> off when you close the form.
>
> --
> Ben Combee, [EMAIL PROTECTED]
> Techwood Broadcasting Foundation, Austin Bureau
>
>
>
>



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

Reply via email to