PDA

View Full Version : Help with Slideshow


kasio69
02-01-2008, 03:09 PM
Hi Group,

i'm looking for some help with a slideshow control. i created a slideshow: SlideShow1 and added 10 pictures. i would like to be able to set a paragraph with a text that describes the pictures as it shows up.

Any suggestions? i'm not a programmer and any help will be appreciated.

Thanks.

holtgrewe
02-01-2008, 05:53 PM
One way to do this would be to have a corresponding paragraph object for each Image.
Text files may be a better approach since maintenance to the description could be done externally from AMS7.

I've attached a very simple example of a slide show object with associated paragraph objects.
It would be best to number the images to correspond to the paragraph numbers, easy management. (Image1 / paragraph1)

The next button controls the setting of paragraph visibility. If you don't want to click a button, there is an event in the Slideshow object (On Slide Changed) which could be used for automatic rolling of Paragraphs with the Images.

hope this gives you some ideas.

yosik
02-02-2008, 11:55 AM
Using a textfile, you can put the description of each image in a separate line (very important!), then under the onShow even of the Page, put the following:

tbl_Desc = TextFile.ReadToTable("yourDescriptionfile.txt");

Then, under the OnSlideChanged event of your SlideShow Object, put the following:

Paragrah.SetText("YourParagraphObject", tbl_Desc[e_Index]);

That would insert the matching description line from the table into your paragraph object.

Hope that helps

Yossi

kasio69
02-03-2008, 09:51 PM
Thank you very much for the reply. I tried both methods Holtgrewe's and Yosik's both work :) at least i managed that. Yosik i end up using your method it's exactly what i was looking for!

Thanks again for the help!