Użytkownik Ed Leafe napisał:
>
>       Got it. I was going by the docs on the wxPython site, which doesn't 
> list any such method of wxApp.
>
>       I've been thinking about this some more, and it would make no sense to 
> block wx events at the Dabo level: this would inextricably bind Dabo to wx, 
> and would most likely make no sense with any other UI toolkit, or would 
> require a real hackish workaround.
>
>       Maybe if you explained what it is you're trying to accomplish, we could 
> figure out a way to achieve the same thing in a UI-agnostic manner.
>
>    

This is what I going to achieve.
I need that my application support barcode reader at form or page level.
Device is connected in Wedge mode, so it emulates an keyboard.
Each read barcode has prefix and suffix code so I easy can recognize them.
Support can't be limited to single control, e.g. dTextBox,
functionality must be independent of any focused control - scan anywhere.
My first approach was to use dApp.onKeyDown event
but unfortunately I can't stop event propagation from here.
Second idea was to use ResumePropagation() method
but it's not implemented in Dabo events and require to subclass
all control classes.
Third idea with FilterEvent() method seems to be perfect for me.
It allows complete control over event behaviour and is transparent.
Requires minimum intrusion in existing code.
My idea is to capture barcode in FilterEvent() then raise custom
event e.g. EVT_BARCODE_SCAN_COMPLETE which can be
processed anywhere in application.

-- 
Regards
Jacek Kałucki

_______________________________________________
Post Messages to: [email protected]
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/[email protected]

Reply via email to