2019-07-14 12:42 AM
Counter is increment or decrement by pressing button the initial value is remain on text box and new value is overwrite on previous value. How to solve overwriting issue.
2019-07-22 12:06 AM
Please ensure that you have a background which covers the entire framebuffer.
/Anders
2019-07-23 08:13 PM
2019-07-30 09:45 AM
2019-07-31 06:03 AM
Hi @DMane,
Please see this forum post on how to interface between hardware and the UI (TouchGFX)
With the Designer you can add an interaction to a button which will then do a screen transition. Have a look at the code in the generated folder:
In generated/gui_generated/include/gui_generated/common/FrontEndHeapBase.hpp you will now see that a slidetransition has been added to the list of "GeneatedTransitionTypes".
/**
* A list of all transition types. Must end with meta::Nil.
* @note All transition types used in the application MUST be added to this list!
*/
typedef meta::TypeList< NoTransition,
meta::TypeList< SlideTransition<EAST>,
meta::Nil >
> GeneratedTransitionTypes;
Now lets have a look at the FrontendApplicationBase.hpp (generated/gui_generated/include/gui_generated/common/FrontendApplicationBase.hpp)
here we see that function prototypes to to the transition have been added, the "void gotoScreen2ScreenSlideTransitionEast();" and "void gotoScreen2ScreenSlideTransitionEastImpl();"
The implementation of these are found in generated/gui_generated/src/common/FrontendApplicationBase.cpp
void FrontendApplicationBase::gotoScreen2ScreenSlideTransitionEast()
{
transitionCallback = touchgfx::Callback<FrontendApplicationBase>(this, &FrontendApplication::gotoScreen2ScreenSlideTransitionEastImpl);
pendingScreenTransitionCallback = &transitionCallback;
}
void FrontendApplicationBase::gotoScreen2ScreenSlideTransitionEastImpl()
{
makeTransition<Screen2View, Screen2Presenter, touchgfx::SlideTransition<EAST>, Model >(¤tScreen, ¤tPresenter, frontendHeap, ¤tTransition, &model);
}
Please take a look at the attached files, here the transition is done by adding the same scheme to the FrontendHeap.cpp and FrontendApplication.cpp placed in the gui folder.
I hope this helps
/Anders