B4J Question [Solved] B4XView - SetRotationAnimated works once only

LucaMs

Expert
Licensed User
Longtime User
Simply applied to Button1 in the default B4XPages template.


[Anyway it is not for me, so I'm trying to adapt the CircularProgressBar class, shamelessly copying ?]
 

Attachments

  • SetRotationAnimatedTest.zip
    8.9 KB · Views: 286
Last edited:

TILogistic

Expert
Licensed User
Longtime User
Before:
Button1.SetRotationAnimated(0, 0)


Sub Button1_Click
Label1.Text = "Rotating..."
Sleep(0)
Button1.SetRotationAnimated(0, 0)
Button1.SetRotationAnimated(1000, 360)
Sleep(1030)
Label1.Text = "Completed"
End Sub
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
[Anyway it is not for me, so I'm trying to adapt the CircularProgressBar class, shamelessly copying ?]

You

remember this:
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…