Ah, ok. Yes, you can do that.
All you have to do is add every item in a list, and call the .AddComponent functioning in a for loop iterating over that list. The component attribute can be selected from the list using the select list block.
I don't have the extension as I'm not able to download it, could somebody represent this in blocks, please?
Edit: The code will look something like this. Please make sure you replace "set VerticalArrangement.Height" to "call HorizontalViewPager1.AddComponent" since I don't have the extension:
Yes it's possible, but since a view can have only one parent so component will only be added to last called parent.
But I think I misunderstood what you asked.
Thank you everyone..
Sorry..
I created a new post that included the latest in this work, and changed the title of the post to be more indicative of the project and the desired. (Book App Template Project)
Please continue there with my best regards and thanks!
Simply I am trying to design a simple application as a template for displaying the textual content of any book..
I designed an app with only 3 pages, using the HorizontalViewPager extension..
Each of these 3 pages consists of 3 components VerticalArrangement, VerticalScrollArrangement and Label..
What I'm thinking of and would like to collaborate on is to put a code to create any number of pages automatically, so that I don't need to add these three components manually every time I want to add a page to the book!
I think it would be difficult or even impossible for any one to repeat these steps if the book was 100 pages or 300
Hopefully have it figured out for you. I have made use of the scrollto block and the page changed block to handle content changes. In essence if you swipe right, your are scrolled back to the middle page and the content is set to the next page in the book, if you swipe left the same happens in reverse.
[EDIT - UPDATE: now shows next and previous pages during swipe]
Thank you very much @TIMAI2 Great work!
Let's go a step further and develop our project and think how to get book content (text) from a file!
Is this possible?