TOUCHGFX ... Add char to textarea ... How to add a char to the end of the text displayed in a textarea.
I do
void Screen1View::updateAsciiInView(char* CwChar)
{
// add to txtbuffer
Unicode::strncpy(textAreaAsciiBuffer, CwChar, 1);
textAreaAscii.invalidate();
}
and that works fine ...my char i s displayed in the first position.
But i need to add it to the end so need something like
void Screen1View::updateAsciiInView(char* CwChar)
{
get the current textbuffer
add to the end of the buffer
Unicode::strncpy(textAreaAsciiBuffer, buffer, buffer length);
textAreaAscii.invalidate();
}
But how to do that ...
THANKS ;o)
Hjalmar