How is TouchGFX preview generated? How to change it if it doesn't match?
I'm not satisfied with the limited alignment options of the text field in the standard button with label object. My text field is left aligned, but I want an offset without using spaces. I copied the cpp file and added a horizontal offset to the text rendering part in draw(). This works (tested in simulator).
This is the code I changed:
case TEXT_ROTATE_0:
offset = (this->getHeight() - height) / 2; // Prefer round down
labelRect = Rect(0+10, offset, this->getWidth(), height); // added 10 pixels horizontal offset
break;
However the preview of the button in the editor doesn't change. Only when I run the simulator does it update.
How is TouchGFX preview generated? Can it be changed?
