The handlers are in pos/src/.../pos/screen/NumericKeypad.java. It should show you how to add buttons and tie events to them. I believe you can see the dialog in action from a button on the main POS page.
My thinking was to have the numeric dialog pop when you touch an edit box. The dialog then returns the appropriate number back to the edit box. That would make the dialogs easy to add through a click event on the edit box. It also means you don't have to redesign screens around QWERTY and a numeric keypad, as these can take up a LOT of screen space. With a dialog, you can also have consistent positioning for the keyboard dialog, increasing speed of entry. That said, I'm not a UI guy. I would love a comments section on the receipt. There could be something usable in the framework already. I don't know if there is a "comments" section during checkout in ofbiz, but it's not an uncommon feature in many online storefronts, so it may also be in ofbiz. If so, it would likely be pretty easy to add a dialog to fill the field and print on the receipt. Christopher > Date: Tue, 27 May 2008 23:37:05 -0400 > From: [EMAIL PROTECTED] > To: [email protected] > Subject: pos screen question > > Jacques....Or anyone that may know! > > If I wanted to add a numeric keyboard, or alpha numaric keyboard (qwerty > keyboard) to that screen, so I don't have to include a physical keyboard, > how would I add that? > > Here is what I've tried. I took a quick minute to add the entries of > /pos/includes/numeric.xml to /pos/includes/savesale.xml I tried clicking > in the bar where the text is, and enter a number or two...but the input > obviously goes somewhere else. How would I go about adding numbers and/or > alpha numeric buttons to a random screen? > > I'm looking at also adding the ability to use some sort of button to add a > text based area to the "receipt" dialog so that servers can add custom > requests to the order. I know I'll have to do a bit of modifying for this, > but with a bit of help, I'd love to add this to the main trunk. I think > people would get great benefit from this. > > Comments? Help? > > Thanks! > > Branden Strickland
