B4J Question [Solved] B4XView - SetRotationAnimated works once only

LucaMs

Expert
Licensed 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: 56
Last edited:

oparra

Well-Known Member
Licensed 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

oparra

Well-Known Member
Licensed User
[Anyway it is not for me, so I'm trying to adapt the CircularProgressBar class, shamelessly copying 😁]

You :oops::oops:

remember this:
 
Upvote 0
Top