OK I have my timer component which works and it’s flipping through a set of windows.
Now I’m trying to make three buttons on the same window as the timer. The first button should stop the timer and scroll one window back. The second button is a toggle button which should simply stop or start the timer depending on whether its selected property is true or false. The third button should stop the timer and scroll one window forward.
Nothing I do is working. If I try
event.source.parent.getComponent('Timer').Running = 0 it gives me an error that I can’t write to the Running property.
For the toggle button I tried this
event.source.parent.getComponent('Timer').running = !event.source.selected but that won’t even compile unless I take out the negation and then it still doesn’t do anything.
I’m also not sure how to address the window list/array which is declared in the timer component. Is that variable visible to other components or do I need to move it somewhere else?