B4A Library [B4X] [XUI] SD LiquidProgress (Bar)

Discussion in 'Additional libraries, classes and official updates' started by Star-Dust, Mar 7, 2019.

  1. Star-Dust

    Star-Dust Expert Licensed User

    Made entirely with B4A with XUI

    iOS Version
    Desktop version

    SD_LiquidProgress

    Author: Star-Dust
    Version: 0.05
    • LiquidProgress
      • Functions:
        • Class_Globals As NSString*
        • DesignerCreateView (Base As NSObject*, Lbl As B4ILabelWrapper*, Props As B4IMap*) As NSString*
          Base type must be Object
        • Initialize (ba As B4I*, Callback As NSObject*, EventName As NSString*) As NSString*
        • Invalidate As NSString*
        • IsInitialized As BOOL
          Verifica se l'oggetto sia stato inizializzato.
        • Wait (Milliseconds As Long long)
          Eg. use:
          SD_LiquidProgress1.Wait(2000)
          Sleep(2000)
      • Properties:
        • BackgroundColor As Int
        • BackgroundWaveColor As Int
        • TextSize As Int
        • TextVisible As BOOL
        • Value As Int
          Value 0 to 100
        • WaveColor As Int

    Video1.gif
     

    Attached Files:

    Last edited: Jun 14, 2019
  2. Alexander Stolte

    Alexander Stolte Well-Known Member Licensed User

  3. Star-Dust

    Star-Dust Expert Licensed User

    In 2017 I had just joined B4X. I probably could not have done it :p. Now I have clearer ideas and more confidence with language.

    Frankly until yesterday I had no idea how to achieve them, then (as always) the code appeared in my mind and I wrote it in a breath so as not to forget it
     
    Last edited: Mar 8, 2019
    Toky Olivier, Erel, amaxco and 3 others like this.
  4. ciprian

    ciprian Active Member Licensed User

    Beautifull
     
  5. Star-Dust

    Star-Dust Expert Licensed User

    Update rel 0.02

    You can change colors and contains a method to pause the progression but keep the animation.

    Code:
    LiquidProgress1.Wait(PauseTime)
    Sleep(PauseTime)
    Video1.gif
     
    Last edited: Mar 9, 2019
    IlCasti and Alexander Stolte like this.
  6. Alexander Stolte

    Alexander Stolte Well-Known Member Licensed User

    And a mehtod to hide the text would be nice :)
     
  7. Star-Dust

    Star-Dust Expert Licensed User

    Maybe at the next update
     
    GMan and Alexander Stolte like this.
  8. Star-Dust

    Star-Dust Expert Licensed User

    Update rel 0.03

    Code:
    LiquidProgress1.TextVisible=False
     
    Last edited: Mar 14, 2019
    Alexander Stolte likes this.
  9. Kope

    Kope Member Licensed User

    great work
     
  10. Star-Dust

    Star-Dust Expert Licensed User

    thank's
     
  11. semar

    semar Active Member Licensed User

    Very nice Star-Dust, thanks for your effort and keep on the good work ! :)

    Best regards,
    Sergio
     
    Alexander Stolte and Star-Dust like this.
  12. Samuel Ramirez

    Samuel Ramirez Member Licensed User

    Great work!!! I will try it
     
  13. IlCasti

    IlCasti Active Member Licensed User

    Hi SD,
    text progress size not follow view size.. can you fix this issue?
    I like it sooo much, thank you!
     
  14. IlCasti

    IlCasti Active Member Licensed User

    Hi SD,
    .ProgressTextVisible = False may seem not working.. text in liquid remain.
    Could you check or tell me what i'm doing wrong? --> MY MISTAKE - IT WORKS!!!

    Could you also make sure that the flow of the liquid is adapted based on
    the size of the view? if the view is too small, liquid is bad to look at, I don't know how to say it

    Bye
     
  15. Star-Dust

    Star-Dust Expert Licensed User

    Update rel 0.04
     
    IlCasti likes this.
  16. IlCasti

    IlCasti Active Member Licensed User

    Thank you, works like a charm!
     
  17. Star-Dust

    Star-Dust Expert Licensed User

    I started working on a version where the view fills with Beer. Very refreshing.
    I need to improve the foam ... I'll study it a little bit

    Unfortunately, I will not be able to distribute it

    Video1.gif
     
  18. cliv

    cliv Member Licensed User

    Thank you...good work!
    Maybe a rectangle or other shape in next update...
     
  19. Star-Dust

    Star-Dust Expert Licensed User

    update rel 0.05

    Video2.gif
     
    Filippo, jimmyF and Kope like this.
  20. Douglas Farias

    Douglas Farias Expert Licensed User

    waiting for this xD
     
Loading...
  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