Hello, How to construct a single button for slider which would activate animation and also stop it ? Thank you.
Thank you very much. Instruction is sincerely appreciated.
Create a boolean a=false
Create a slider b
Create a button. In the OnClick tab of the Properties window of the button, type the following commands:
The command SetValue(a,!a) toggles the value of the boolean a any time you push the button.
I suggest using SetValue(a,!a) instead of the assignment a=!a that you can see in user alfabeta's file, because SetValue is more efficient.
Thank you very much. We are really beholden for suggestion.
Comments have been locked on this page!