change screen from Model.cpp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-19 4:13 AM
Hi I'd like to change screen from Model.cpp, regardless the screen I'm currently in.
Is there a solution without implementing a method that changescreen in each screens ?
Thanks !
Solved! Go to Solution.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-24 5:35 PM
I think it is not recommended way to change screen directly from Model.cpp, because classes generated by touchgfx are based on Model-View-Presenter design pattern. It will take a little more steps, but I think it is safer way using ModelListener.
- Usage of ModelListener is written in the following page (in Propagating Data to UI).
- It may be useful to change screen from the user code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-24 5:35 PM
I think it is not recommended way to change screen directly from Model.cpp, because classes generated by touchgfx are based on Model-View-Presenter design pattern. It will take a little more steps, but I think it is safer way using ModelListener.
- Usage of ModelListener is written in the following page (in Propagating Data to UI).
- It may be useful to change screen from the user code.
