What you want to do is to have an accelerator key set focus to the spin edit. Then program the barcode reader to send the accelerator key as the prefix. By default there is no prefix. Then program the barcode reader to output a TAB instead of ENTER as the suffix. Not all barcode readers like this, so you may need to code your control to accept ENTER as TAB.
----- Original Message ----- From: "Mark Howard" <[EMAIL PROTECTED]> To: "NZ Borland Developers Group - Delphi List" <[EMAIL PROTECTED]> Sent: Tuesday, April 27, 2004 9:50 AM Subject: RE: [DUG] Entering a value using a barcode wand > OK Thanks Conor and Neven > > Sounds like it'll be pretty straightforward. That's a relief. > May even be able to: set focus to SpinEdit, read number and Tab to next control > with one swipe. > I guess the next thing is to borrow one of their wands and software and try it > > Mark. > > On 27 Apr 2004 at 9:31, Neven wrote: > > > Mark > > > > Most barcode wand simply are inline with the keyboard, so scanning is > > equiv to typing - simple eh > > > > Also you can program some of them to prefix and suffix codes onto the > > string, So you could prefix a control code (to set focus to the > > correct control) and then simply accept the barcode > > > > HTH > > > > Neven > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Behalf Of Mark Howard > > Sent: Tuesday, 27 April 2004 9:04 a.m. > > To: [EMAIL PROTECTED] > > Subject: [DUG] Entering a value using a barcode wand > > > > > > Hi all > > > > I have a screen containing a series of data entry controls > > (TComboBoxes, TDateEdits, TEdits) one of which is a TSpinEdit. > > > > To date, data entry has been by keyboard or mouse BUT now I have a > > site that wishes to enter the TSpinEdit value using a bar-code wand. > > > > I have NO knowledge of this and would be grateful if someone could > > give me some pointers or references to find out about this. > > > > Thanks > > > > Mark Howard > > _______________________________________________ > > Delphi mailing list > > [EMAIL PROTECTED] > > http://ns3.123.co.nz/mailman/listinfo/delphi > > > > > > > > _______________________________________________ > > Delphi mailing list > > [EMAIL PROTECTED] > > http://ns3.123.co.nz/mailman/listinfo/delphi > > > > > _______________________________________________ > Delphi mailing list > [EMAIL PROTECTED] > http://ns3.123.co.nz/mailman/listinfo/delphi > _______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
