Does GTT support ASCII backspace (Dec 8)

GTT TFT Support

Moderator: Mods

Post Reply
pradipsangani
LCD!
Posts: 14
Joined: Sun Sep 18, 2011 11:49 pm

Does GTT support ASCII backspace (Dec 8)

Post 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
Pads

Clark
Matrix Orbital
Matrix Orbital
Posts: 881
Joined: Fri Aug 17, 2007 10:58 am
Location: Matrix Orbital
Contact:

Post 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
Troy Clark
Design & Development
Matrix Orbital

Post Reply