Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 10th, 2025, 5:33 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: List Boxes - the basics!
PostPosted: March 30th, 2005, 3:16 pm 
Offline

Joined: March 28th, 2005, 2:05 pm
Posts: 15
Hello all!

I know I'm deeply stupid - this is confirmed on a daily basis as I struggle to get to grips with variables!!!!

I am trying to use a list box for the first time - the help pages may as well be written in Chinese!

Can one of you patient, kind, intelligent people please give me a basic outline of how to use these things?

I've created a list box that contains five different lines of text. My desire is that the (poor!) user will click on any of those five lines and be transferred to another page (and then have the option of returning to the list box).

I come a cropper when I look at the list box properties tab! How do I apply a variable to each line of text in the lsit box? The help pagesa re far from clear.

I'd be grateful for any help that may be offered - in the meantime I'm off to get some tranquilisers!

kind regards
Aidan

_________________
kind regards
Aidan


Top
 Profile  
 
 Post subject:
PostPosted: March 30th, 2005, 4:10 pm 
Offline

Joined: October 25th, 2004, 12:27 pm
Posts: 526
Location: Digital Workshop
Hi,

Thank you for your enquiry.

Does the Listbox have to be populated using variables? Or do you simply want to provide a list of the pages available in the publication?

If you simply want a page list, create a Listbox object on the page, then type the names of each of your pages (as shown in the Organiser pane) into each line of the list box.

Once all pages have been inputted, open the properties of the Listbox and select the Listbox tab. Enable the Store Selected Text option, then click the New button and create a new Publication Variable named selected with a default blank text value. Click OK to create the variable and OK again to confirm the changes.

Now right-click on the Listbox and select Edit Actions. Select the Triggers tab, Mouse group and double-click on the Left Mouse Click trigger to apply it.

We could now add a long chain of If/Else statements which check to see if the selected variable equals "Page 1", "Page 2", "Page 3", etc., followed by Go To Page actions to take the user to the corresponding page, but this would be as laborious as it sounds. As we have used the correct page names in the Listbox we can use a single script action to take the user to the right page.

Select the Programming tab, open the Programming group and double-click on the Script action to apply it. Now type the following into the script panel:

Code:
GotoPage(selected)


Now click Apply and OK and preview the publication. Scroll through the Listbox and click on a page name - you should be taken to the selected page.

I have attached a completed example which you can examine should you encounter any problems with this procedure.

Kind regards,


You do not have the required permissions to view the files attached to this post.

_________________
Robin Garrett
Digital Workshop Technical Support


Top
 Profile Visit website  
 
 Post subject: Many thanks
PostPosted: March 30th, 2005, 6:54 pm 
Offline

Joined: March 28th, 2005, 2:05 pm
Posts: 15
I got it to work
Kind regards
Aidan

_________________
kind regards
Aidan


Top
 Profile  
 
 Post subject:
PostPosted: August 17th, 2006, 4:17 pm 
Offline

Joined: November 11th, 2004, 3:44 am
Posts: 5
Hi, Robin,
I am trying the listbox feature and see that this does not work if the page is in another chapter. Is there any way to overcome this? Thanks.

NEVERMIND.... I ANSWERED MY OWN QUESTION.... UPPER CASE LETTER FOR THE PAGE NAMES DID NOT WORK. THANKS, ANYWAY.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 94 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group