Hi everyone,
I have been playing around with a ugfx gui for a bit and it has been working well. Now I found the need to rewrite the text of several Textedit-widgets at runtime and ran into some problems: the text is written correctly first, but when I place the cursor in the widget to edit the newly loaded text, an unrelated text shows up. The text which shows up seems to be some buffer garbage, stuff I wrote to labels at some point. I changed the buffer involved in the writing of the textedit (now short_buffer, used for nothing else) and the text is the same (or similar).
Is this a bug or am I using the system wrong? I suppose using dynamic text could provide a workaround, but I thought I would ask before trying too many things.
I am working with a recent git version of ugfx and Chibios 18.2.
Thank you for any help,
Thomas
The code for writing the textedit: (works fine for labels)
// write the desired to text to a buffer using a chibios print function
chsnprintf(short_buffer, 8, "%.1f", TCU.CE->T_max);
// write buffer to textedit
gwinSetText(ghTextedit_max_temperature, short_buffer, FALSE);