Author: Paul McNett
Posted: 2012-02-06 at 11:39:13
On 2/6/12 7:50 AM, John Fabiani wrote:
> On Monday, February 06, 2012 04:19:42 PM Jacek Kałucki wrote:
>> Użytkownik John Fabiani napisał:
>>> Interesting code. What platform required the code? While working with
>>> barcode readers in the past (I have only used symbol) they just acted as
>>> a keyboard. I did not find it necessary to write any code. I did
>>> however have to strip out the beggining and ending char's to gain
>>> access to the data. But I was doing that anyway. Your code avoids the
>>> stripping.
>>
>> I have Windows platform application with DataLogic scanners supported.
>> But I think it should work in any software environment and with any scanner
>> with Wedge interface support, the only thing to do is to customize scanned
>> code prefix and suffix. The main advantage of this code is that you have no
>> longer need to put focus on control that accept keyboard output.
>> You can trigger scan button anywhere the focus is placed.
>
> Thanks Jacek, looks like it's a good way to get the job done.
I didn't realize there was a way to filter the events. Do I understand correctly that
FilterEvent gets the first opportunity to deal with events being raised? Is this
relatively new because I was looking for it back in wxPython 2.4 or 2.6 - I think
we'll wrap some of this to offer VFP's KeyPreview-like functionality (a bool
specifying whether the form or the control with focus gets the first opportunity to
deal with keypresses)...
Paul
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/4F300231.6010800@ulmcnett.com