Changing widgets on runtime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-08-22 2: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
- Labels:
-
IAR
-
STM32F7 Series
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-08-22 4:05 AM
Hi, just solved this with "invalidate".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
