cancel
Showing results for 
Search instead for 
Did you mean: 

Redraw custom widget if its updated

MMa.4
Associate

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 ?

1 REPLY 1
Romain DIELEMAN
ST Employee

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