Number display issue
ToughGFX Designer: 4.20.0
STM32Cube IDE: 1.11.0
Hello there,
i'm using touchgfx to show received data using
Unicode::snprintf(FenceNumBuffer, FENCENUM_SIZE, "%d", g_displayCtlBlk.fenceConfigS1);Recently I found if I place
FenceNum.resizeToCurrentText();directly after
Unicode::snprintf(FenceNumBuffer, FENCENUM_SIZE, "%d", g_displayCtlBlk.fenceConfigS1);the character in the MSB of FenceNumBuffer will still remain in the buffer (on the display the current number will be mixed with the old long number).
However, if this resize function is placed after invalidate function (or without resize function), although in the FenceNumBuffer there still exits old value, it seems the terminal \0 did work, it prevents showing the old value.
Is there anyone, who can explain this phenomena
?
Best regards
J.Pan
