Scanning Datamatrix Codes in wxWidgets Application

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
gbuergisser
Knows some wx things
Knows some wx things
Posts: 31
Joined: Mon Nov 07, 2011 12:41 pm

Scanning Datamatrix Codes in wxWidgets Application

Post by gbuergisser »

Hi all,

The application I'm developing allows the user to input data manually or by scanning a 2D datamatrix code. As you may know the datamatrix code can contain binary control characters, e.g. \x1d aka GS aka Group Separator, to terminate variable length data in the code.

Now if I scan a datamatrix into a wxText control, the GS character is stripped from the input. How can I suppress this behaviour?

Thanks for any help.
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Scanning Datamatrix Codes in wxWidgets Application

Post by doublemax »

I don't think you can make the text control store non-printable characters. I would try to catch the key event early and store the data in a separate buffer.
Use the source, Luke!
Post Reply