2021-10-01 01:53 AM
Hello,
I create custom widget base on this tutorial https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/custom-widgets.
But it is updated on screen only once at the beginning. How to implement auto redraw when internal widget data is changed e.g. a new data was set to widget in tick() function ?
2021-10-04 06:41 AM
Hi,
What kind of custom widget did you create ? Usually it is just a simple "invalidate that zone" every time the relevant fonction is called, like in the boxProgress widget which calls invalidateRect() whenever you change the value of the widget (you can see the implementation in BoxProgress.cpp).
Could you maybe share the code or more info so that I or other users can try to replicate or improve it ?
/Romain