2020-08-26 04:41 AM
hello
i want to used clicklistener and button callback.
how to wrote this two callback in screenViewBase?
screenViewBase::screenViewBase() :
buttonCallback(this, &screenViewBase::buttonCallbackHandler)
boxClickedCallback(this, &screenViewBase::boxClickHandler)
{
........
}
like this
i'm new in c++ language
Solved! Go to Solution.
2020-08-26 05:07 AM
Hi, I do not know if it right way, but I did it like this:
Screen1View::Screen1View():imageFadeAnimationEndedCallback(this, &Screen1View::imageFadeAnimationEndedHandler),
image2FadeAnimationEndedCallback(this, &Screen1View::image2FadeAnimationEndedHandler),
image3FadeAnimationEndedCallback(this, &Screen1View::image3FadeAnimationEndedHandler)
{
Best regards.
Jan
2020-08-26 05:07 AM
Hi, I do not know if it right way, but I did it like this:
Screen1View::Screen1View():imageFadeAnimationEndedCallback(this, &Screen1View::imageFadeAnimationEndedHandler),
image2FadeAnimationEndedCallback(this, &Screen1View::image2FadeAnimationEndedHandler),
image3FadeAnimationEndedCallback(this, &Screen1View::image3FadeAnimationEndedHandler)
{
Best regards.
Jan
2020-08-26 06:39 AM
Yes,Thanks a lot JPe�?a.1.
2020-08-26 11:24 PM
Hello,
Yes what @Jan Pe�?a said is correct.
Also, never try to modify ScreenViewBase. It's a file generated by TouchGFX so all your modifications will be overwritten when you regenerate code.
The file that can be edited by the user is ScreenView as mentioned for the solution.
/Alexandre