i need to move a button from left to right on a form, i.ve been told we have to use coding with sine in it but am not sure how this is done. already tried while loops (but may have been doing it wrong) any ideas??
Loading
i need to move a button from left to right on a form, i.ve been told we have to use coding with sine in it but am not sure how this is done. already tried while loops (but may have been doing it wrong) any ideas??
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Scott LyslePosted Nov 28, 2006, 11:28 PM
Naturally you may define variables and increment and decrement them using a loop that describes moving something along a path that represents a sine wave by increasing the rise and run to a point and the continuing to increase the run while decreasing the rise. If the variables incremented and decremented in the loop are legitimate screen coordinates you can apply these to the top and left properties of the button and move it along an apparent sine wave-like path.