B4i Library iCircularProgress- circular progress bar

Name: iCircularProgress

Version: 1.11

Description: iCircularProgress allows you to add circular progress bars to your app's layout

Picture:
XAl0TK4z

Documentation:
Events:
  • _AnimationProgressChanged (Progress As Float)
  • _AnimationFinish
Methods:
  • Initialize (EventName As String, Panel As Object, Left As Float, Top As Float, Radius As Float)
  • SetProgress: (Progress As Float, DurationMS As Int)
  • AddProgress: (Progress As Float, DurationMS As Int)
  • SubtractProgress: (Progress As Float, DurationMS As Int)
Properties:
  • MarginTop As Float
  • MarginLeft As Float
  • Radius As Float
  • LineWidth As Float
  • CountdownMode As Boolean
  • InAnimation As Boolean
  • FilledColor As Int
  • UnfilledColor As Int
  • Progress As Float [read only]
  • Panel As Object [read only]

Notes/Tips:
  • the method SetProgress sets the start progress automatically to 0 in the normal mode an 1 in the countdown mode
  • all views on the panel which is used by CircularProgress will be removed

Download "iCircularProgress 1.11.zip": http://bit.ly/2xAU4FV

Feel free to ask questions ;)
 

Attachments

  • Example.zip
    3.1 KB · Views: 189
Last edited:

Taha

Member
Licensed User
Longtime User
9.2.1. Ok, I will try to insert my code updating progress in your example.
 

Taha

Member
Licensed User
Longtime User
I modified Button1_Click event in you sample as below. Still the same problem.
B4X:
Sub Button1_Click
    Slider1.Enabled = False
    Button1.Enabled = False
    For i=0 To 1 Step 0.005
    CirPro.SetProgress(i,6000)   
    Next
End Sub
 

Taha

Member
Licensed User
Longtime User
Hi, Jan!

It looks like it is not possible to have to have more than one instance of iCircularProgress? In the example I added a new smaller panel and set inside another circularprogress (CirPro2) with thinner line and renamed initial to CirPro1. See what happens if I move a progress slider on the attached pictures. Notice that I did not change control for slider it is still supposed to change progress for initial iCircularProgress (Slider1.Value = CirPro1.Progress)
 

Attachments

  • IMG_0072.PNG
    IMG_0072.PNG
    50.8 KB · Views: 37
  • IMG_0073.PNG
    IMG_0073.PNG
    49.4 KB · Views: 40
Last edited:

JanPRO

Well-Known Member
Licensed User
Longtime User
Update v. 1.1

Changes:
  • the property Top was renamed to MarginTop
  • the property Left was renamed to MarginLeft
  • iCircularProgress is now a CustomView
  • bug fix (thanks to Taha)

You can find the new version attached in the start post.

Jan
 

Descartex

Well-Known Member
Licensed User
Longtime User
I'm trying to make this work, but i cant... i've added the control to the designer and generate the members...
but when i try to compile, remote compiler raises an error:
Error: ** BUILD FAILED **


The following build commands failed:
CompileC build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_globalvars.o B4iProject/b4i_globalvars.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Thanks in advance.
 

Descartex

Well-Known Member
Licensed User
Longtime User
I only changed the app name from the error message log.

Thanks
 

Attachments

  • Error.txt
    96.5 KB · Views: 3

Descartex

Well-Known Member
Licensed User
Longtime User
Thanks!!!
I thought i was making something wrong!!!
 

Descartex

Well-Known Member
Licensed User
Longtime User
@Erel Can you upload the file???
Thank you!!!!
 

Descartex

Well-Known Member
Licensed User
Longtime User
A ton of thanks for both
 
Top