How to slow things down

sterlingy

Active Member
Licensed User
Longtime User
In my app, when a user clicks on a button, a panel becomes visible. What I would like to happen is have the button slide up to the top of the screen. All of this is working, but the button's movement is so fast that it just seems to appear at the top of the screen.

I'm wondering what is the best method to slow down the movement. Ideally, this operation would be in it's own thread.

Currently, I have a DoWhile Loop that updates the vertical position from it's original position to the top of the screen. I need a way to slow down the loop process.

Cheers,

Sterling
 
Last edited:

WAZUMBi

Well-Known Member
Licensed User
Longtime User
Use a timer. On every timer click move the panel up a set amount. Once it reaches zero then disable the timer. You can set the speed based on the interval of the timer or the distance the panel moves after each click.

Anyways, thats whayt i would do.
 
Upvote 0
Top