Slide Show

Darrel,

There are a couple was to do this, but it sounds like your best bet is to have a link somewhere in your project to close all windows and open one small window with a timer and start/stop buttons. Set the buttons to toggle the “running” property on the timer. Then set the timer maximum to the number of windows you will be cycling through, and the delay to however long you want to pause at each screen. In the timer event configuration under propertyChange, put the following:

[code]#list of windows to cycle through
windows = [“Window 1”, “Window 2”, “Window 3”]

if event.propertyName == “value”:
i = event.source.value
#close the previous window
if event.source.value == 0:
fpmi.gui.closeWindow(windows[len(windows)-1])
else:
fpmi.gui.closeWindow(windows[i-1])
#open the next window
fpmi.gui.openWindow(windows[i])[/code]
You can also add items to the runtime menu to start and stop it for you. Something like

#open the window if it isnt open fpmi.gui.openWindow("SlideShowControl") #reset the value so you start at window1 fpmi.gui.getWindow("SlideShowControl").getRootContainer().getComponent('Timer').value=0 #start it running fpmi.gui.getWindow("SlideShowControl").getRootContainer().getComponent('Timer').running=1

Hope that helps!