how to use two callback in screenViewBase::screenViewBase() ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-08-26 4: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.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-08-26 5: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-08-26 5: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-08-26 6:39 AM
Yes,Thanks a lot JPe�?a.1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
