About that textArea wildcard..
Diving a bit deeper into the whole model/presener/view thing I think I got far enough to try and have a task update a counter on the screen.
I'm in the process of doing this but I'm confused about the 'wildcard buffer' in TouchGFX designer.
Following the text of https://touchgfx.zendesk.com/hc/en-us/articles/207015345-Using-texts-and-fonts under the 'Wildcard' section, this is shown:
TextAreaWithOneWildcard txt;
Unicode::UnicodeChar txtBuffer[10];So basically this creates the text area AND the buffer.
If I use the Designer to do this - isn't this code generated for me somewhere?
more specifically in the screen1View.hpp (yes I created a new screen for my application)
Furthermore the manual page states that I should write this:
txt.setTypedText(TypedText(T_TEMPERATURE_READOUT));
txt.setXY(10, 20);
txt.setColor(Color::getColorFrom24BitRGB(0xFF, 0xFF, 0xFF))
txt.setWildcard(txtBuffer);
add(txt);
txt.setTypedText(TypedText(T_TEMPERATURE_READOUT));
txt.setXY(10, 20);
txt.setColor(Color::getColorFrom24BitRGB(0xFF, 0xFF, 0xFF))
txt.setWildcard(txtBuffer);
add(txt);Where I think that the setWildcard function should 'connect' the buffer and the wildcard.
When I choose to create a buffer inside the designer where is it created? or more importantly - what is it called if I can just reference it?