>Subject: Please Help!
>From: [EMAIL PROTECTED]
>Date: Wed, 13 Jun 2001 12:41:34 EDT
>
>I am working with a symbol palm and I wrote some code like this
>
>if (eventP->data.ctlEnter.controlID == UpdateScanButton)
> {
> ScanCmdStartDecode();
> bHandled = true;
> }
If you are using a 1500 or 1700 then this probably isn't the best
way to do this.
Instead activate scanning, then trap the event that occurs when a
scan occurs. The Symbol APIs take care of the operator pressing
the (hard) scan button and decoding the scan and returning the scan
event if a successful scan occurs.
If you are using the Symbol scanner that plugs into the Springboard
slot of a Handspring, then your approach is more viable because
you don't have the dedicated scan buttons. But again Symbol's APIs
can take care of this for you if you designate one of the hard buttons
as the scan-activate button.
Generally putting a software scan button on your form is not
a desirable UI approach in most circumstances.
Roger Stringer
Marietta Systems, Inc
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/