Page 1 of 1

Checkbox and Thumbnails

PostPosted: Sun Nov 20, 2011 8:27 pm
by kennyray23
Since this is my first post, I will try and make it sound like I know what I am talking about! All kidding aside, I am very new to this and have a general question regarding my project. I have a program that holds 60 slides with pictures and radio buttons that adds up the users totals at the end, (kind of like a art quiz). Currently I have a way to go through all the slides in order, plus a random generator that allows the user to choose 10-50 random slides at a time. I would like to add a feature that allows a user choose what slides they would like to see based on clicking the checkbox below a thumbnail image. I have tried everything and read everything I can, but have limited knowledge and experience in Neobook. Thank you in advance for any help!

*EDIT-- Just to expand on this so it is not confusing, when the user checks the checkbox button, I would like it to record a list of pages they wish to view and then take them to those pages they have chosen in the order they were selected.


PostPosted: Mon Nov 21, 2011 11:30 am
by Neosoft Support
If each picture is on its own page, then you could try using the pub's "Page Change" action (see Book Properties > Actions) to control whether an individual page displays or not. Upon entering the Page Change Action, this variable will contain the name of the page the reader wishes to navigate to. If the target page is one that is not selected you could redirect to the next selected page.

PostPosted: Mon Nov 21, 2011 12:42 pm
by kennyray23
I hate to bother you on this, but could you give me a quick example? Thank you for your response...

Edit--Another question..., should I have the checkbox populate a listbox and then set a way for the listbox to take me to the pages the user has chosen? Is that even possible?

PostPosted: Mon Nov 21, 2011 4:07 pm
by kennyray23
Ok...I have figured out how to assign a variable to my checkbox that stores the page number and lists it in my Listbox. My question is do I retrieve the contents of the listbox to display the pages? I assume it is like using the loop command to play random pages right?

PostPosted: Mon Nov 21, 2011 5:35 pm
by kennyray23
Okay I figured it out! I had to assign a the page name into a variable and then add that variable to the listbox. Then using an altered version of the random generator code provided in an example, I was able to retrieve the variables from the listbox and they were listed in the order they were picked....Learned a lot in the process!

PostPosted: Tue Nov 22, 2011 12:12 pm
by Neosoft Support
Sounds like you figured it out.