Solved
Alexandre RENOUXBest answer
Visitor II
March 22, 2021
Hello MTana.1,
I made a simple code example to show you how to change screen when pressing a button in a ScrollList. Looking at the code should give you all the necessary answers.
There's several ways to implement what you want, but the enclosed solution is in my opinion the simplest.
Basically,
- You create change screen interactions (done in Designer) in your custom Container used as a base for your ScrollList.
- You create an interaction (in Designer) that will trigger a virtual function when the button is clicked.
- You assign a number to each element of your ScrollList to differentiate them and call the right screen change accordingly.
The main files to look at in the example are CustomContainer1.cpp/hpp and Screen1View.cpp/hpp
Hope this will help.
/Alexandre
