Question
How deal with "wchar_t" in textArea?
I want to display a long "wchar_t" type text in a textArea.
Here is my code.
void seasoningDisplay::setSeasoningText(const wchar_t* input)
{
touchgfx::Unicode::UnicodeChar tmpfmt[200];
touchgfx::Unicode::strncpy(tmpfmt, (const char*)input, 200);
Unicode::snprintf(seasoningTextBuffer, SEASONINGTEXT_SIZE, "%s", tmpfmt);
seasoningText.resizeToCurrentText();
seasoningText.invalidate();
}I know it is not correct, please tell me how to realize it.
