1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Wish Add AnimationCompleted event

Discussion in 'Bugs & wishlist' started by rraswisak, Jul 8, 2019.

  1. rraswisak

    rraswisak Member Licensed User


    My B4A object use SetLayoutAnimated to make some animation, as in B4J we can use this code:
    'B4J Code...
    Sub ShowLabel
    Dim lbl As Label
    Wait For lbl_AnimationCompleted
       lbl.Text = 
    End Sub
    In B4A SetLayoutAnimated method is available but not AnimationCompleted event as B4J does, previousely i use sleep to handle this situation, but it would be elegant if B4A can also has AnimationCompleted event so we can use Wait For.

    Thank you
    JohnC likes this.
  2. LucaMs

    LucaMs Expert Licensed User


    [attached a (not so smart) workaround].

    Attached Files:

    rraswisak likes this.
  3. rraswisak

    rraswisak Member Licensed User

    Thank @LucaMs for the attachment and nice example, i'm done with this approach too...
    Using Sleep is the only option right now, i just wish can use AnimationCompleted event (internally) and using Wait For... as simple as B4J does
  4. LucaMs

    LucaMs Expert Licensed User

    Yes, I know...

    My + 1
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice