2019-08-22 02:52 AM
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
2019-08-22 04:05 AM
Hi, just solved this with "invalidate".
2019-08-22 12:32 PM
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.