Skip to main content
ASega
Associate
August 22, 2019
Question

Changing widgets on runtime

  • August 22, 2019
  • 2 replies
  • 903 views

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

This topic has been closed for replies.

2 replies

ASega
ASegaAuthor
Associate
August 22, 2019

Hi, just solved this with "invalidate".

Martin KJELDSEN
Principal III
August 22, 2019

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.