Can I change the text rendering?
I want to make a TextBox with a cursor (caret) and would like to change the TextAreaWithOneWildcard. Where can I see the implementation of the draw method? Is this code open?
I want to make a TextBox with a cursor (caret) and would like to change the TextAreaWithOneWildcard. Where can I see the implementation of the draw method? Is this code open?
touchgfx/widgetsYou can inspect the draw methods of the text areas. `TextAreaWithOneWildcard` inherits from `TextArea`
Imagine that you have a widget of type `TextArea` that is time aware using:
Application::getInstance()->registerTimerWidget(this);You can now receive ticks in:
void MyCustomTextArea::handleTickEvent()
{And blink a cursor/caret at some interval. Now it's your job to move the caret as the TextArea receives new input (from the application). You can do this by moving the caret to the end of the text (you can get the total width of the text) or if you want to support editing at some location in the text,.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.