Im creating a touchscreen POS software. Im creating my own onscreen keyboard, but Ive run into some issues that I cant quite figure out, Would appreciate any assistance given.
1) I would like to create a single keyboard that floats on the screen when launched, and send the characters typed into whatever field has the focus. (So far I have to hard code which field is to get the results of the buttons pressed)
2) No matter how I've tried to do it, I cant get the "Backspace" button to remove a single character each time it is pressed, instead it erases the entire field's content with a single press.
So far, how I have it is; at the moment I want to send the keystrokes to a field on the invoice screen which is "Var->Product_Lookup"
when a character or numeric button is pressed, the following occurs:
a) The text value of the button is retrieved and stored in Var->Letter
b) I then set "Var->Product_Lookup" to (Var->Product_Lookup + Var->Letter)
The problem with doing it this way is, that I cant control where in the firld to add the new characters, even if I place the cursor at a certain point the new character is alwaysed placed at the end of the field still. and If I use the "Send Keys" action, one character simply replaces the one before.
How do I get my buttons to behave the very same way as the buttons on the keyboard?
1) I would like to create a single keyboard that floats on the screen when launched, and send the characters typed into whatever field has the focus. (So far I have to hard code which field is to get the results of the buttons pressed)
2) No matter how I've tried to do it, I cant get the "Backspace" button to remove a single character each time it is pressed, instead it erases the entire field's content with a single press.
So far, how I have it is; at the moment I want to send the keystrokes to a field on the invoice screen which is "Var->Product_Lookup"
when a character or numeric button is pressed, the following occurs:
a) The text value of the button is retrieved and stored in Var->Letter
b) I then set "Var->Product_Lookup" to (Var->Product_Lookup + Var->Letter)
The problem with doing it this way is, that I cant control where in the firld to add the new characters, even if I place the cursor at a certain point the new character is alwaysed placed at the end of the field still. and If I use the "Send Keys" action, one character simply replaces the one before.
How do I get my buttons to behave the very same way as the buttons on the keyboard?
Comment