Hello,
Sorry but I can not post the code here because it is more than 900 lines and would require too many adjustments to be used without connection to my database.
But I can tell you the principle of the code:
Must be created:
- A "case" class (derived Button) having an update () function
- A GridLayout that is filled with case "Case" at the opening of the application (must be calculated nobre of displayable lines on the screen).
- A vertical slider on the left side and navigation buttons on the right side.
The data were imported to the database to open the application.
Now create different "virtual pages": A Update () function does this:
1. Assign the lines to each virtual page. Example: dictLinesPerPage [0] = [line1, line2, line] ...
2. Displays the current page by modifying the existing boxes in the GridLayout (with Update function of each box)
3. The navigation buttons and Silder merely modify the current page number and then call the main update function.
Thus, the display is very fast and gives the illusion of a listview.
I hope I have given you some ideas.
Good day