FrontendApplication.cpp is overwritten when he code is generated by TouchGFX designer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-07-06 3:09 AM
Hi ,
I'm using TouchGFX 4.21.4 version.
I added screen changes related code (2 functions mentioned below) in FrontendApplication.cpp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-07-07 8:47 AM - edited 2023-07-09 9:15 AM
Hello. I try to repeat it but not succeded. Can you share some simple project which does it ?
Br. J.T
PS. BTW you dont have to write those screen changes manually, it is enough if you add interactions even without any trigger to some of your screen.
Tgfx will then generate those functions to frontend- base class (FrontendApplicationBase.cpp )and they can be called from any screen like:
application().gotoScreen2ScreenSlideTransitionEast();
Or from model-class for example like:
static_cast<FrontendApplication*>(Application::getInstance())->gotoScreen2ScreenSlideTransitionEast();
(add '#include <gui/common/FrontendApplication.hpp>' to model.cpp)
