cancel
Showing results for 
Search instead for 
Did you mean: 

Changing widgets on runtime

ASega
Associate II

Hi

I am using TouchGFX with IAR on STM32F746NG discovery.

I have a code that tries to change text or button color , from Model.cpp (tick) -> Presentor.cpp -> View.cpp , the function in view.cpp calls xxxText.changeColor and nothing happens.

Important note : It is working if I change color during the first "tick" call , but if I do it after for examples 1000 "tick" calls it is not working. Any idea what the problem could be ?

Thanks

Anat

2 REPLIES 2
ASega
Associate II

Hi, just solved this with "invalidate".

Martin KJELDSEN
Chief III

You got it. Some methods invalidate implicitly, while others don't. I guess that's something to learn.

e.g. methods like setColor(), setXY(), setHeight() do not invalidate. A method like moveTo() does.