The demo button will do three different things. Related, but different.
Edit the showme variable in the "Code" tab to see each demo.
- Toggle between two functions (one per mouse click)
Using the "checked" status the first click will run the first function. Second click will run the second.
i.e. action is 1, 2, 1, 2, 1, 2 ...
. - Run a sequence of functions (one per mouse click)
Using a home made attribute run through a sequence of functions of your choice. There can be as many different functions as you want to set up for.
i.e action is 1, 2, 3, ... 1, 2, 3, ... 1, 2, 3, ...
Obviously you could set the different functions to run dependent on conditions rather than just a straight sequence. i.e. the user clicks on your back/re-do object and steps back one function, or carries on forwards. Or your error checks need to send them back!
. - Preserve data through mouse clicks
Using a home made attribute preserve any sort of data you like (such as a count or a setting or some other variable) so that you can carry on using that same data the next time you click the button.
Combining and/or 1, and/or 2, and/or 3, could give some real multi-functional control.
Doncha just love thinking outside the box?


