Page 1 of 1

Does GTT support ASCII backspace (Dec 8)

Posted: Sun Oct 09, 2011 10:55 pm
by pradipsangani
Hi,

Does GTT support ASCII backspace (Dec 8 )? I mean, if the character backspace (Dec 8 ) is sent to the display, does it perform operation of backspace?

Thanks

Posted: Tue Oct 11, 2011 9:54 am
by Clark
Hi Pads,

The GTT supports only the control characters which are listed in the manual; 7, 10, and 13 decimal.

However, if for instance you are building a keypad to which you'd like to add a backspace key, you can create that functionality with a little work. You can find an example in the GLT240128 Touch Screen appnote, take a look at the DeleteChar() function in the Display.cs file. Essentially, you'll have to use a mono-spaced font, keep track of the cursor position, and finally draw a rectangle over the last character and move the cursor back to execute a backspace operation.

Thanks,
~Troy