PDA

View Full Version : Listbox Action (Page Jump) Question


dugarte
08-03-2006, 05:17 PM
I've been trying to create a listbox that can interact with the different pages in my Autoplay project. So for example. say my project consists of pages A, B, C and D. On the first page of my project (Page A) I'd like to have a list box that would contain 3 rows (B, C and D). When one would click on row B it would page jump to it's corresponding page. I'm basically trying to use the listbox application as a navigational tool. Can anyone help me how to do this?

Thank you

longedge
08-04-2006, 08:22 AM
I've never done that so off the top of my head I don't know but is there a reason you need to use a list box? I always use buttons but you could use hotspots over a paragraph item as easily. Just a thought...

TJ_Tigger
08-04-2006, 08:45 AM
I would create a function that would get the pages in the project. This action returns a table, step through each entry in that table and check to see if the value matches the current page and if it does not then add it to the listbox. This will add all but the current page to your project.

On the listbox then get the text or data and perform a page jump to that page.

HTH
Tigg

dugarte
08-04-2006, 04:51 PM
thank you for the help! It helped a lot.

TJ_Tigger
08-04-2006, 06:03 PM
Glad to help.

Tigg

stickck
12-16-2006, 07:23 AM
you could also put your page names into the listbox and use the Get.Selected function and then put that into the Page.Jump ()

like this...

function dbclick1()
tbSelected = ListBox.GetSelected("ListBox1");
if tbSelected then
strScript = ListBox.GetItemText("ListBox1",tbSelected[1]);
Page.Jump(strScript)
end
end

Hope that helps

Chris

stickck
12-16-2006, 07:27 AM
you may need to concat the Page.Jump function

Page.Jump('"'..strScript..'"')

i think thats right.

chris