B4A Library NumberProgressBar V3

JakeBullet70

Well-Known Member
Licensed User
Longtime User
Hi @DonManfred

I am having issues with this. If you see below I have created a very simple project and if I add the progressbar via the designer it errors out. If I remove it then all is good. Thanks for all your hard work!

 

JakeBullet70

Well-Known Member
Licensed User
Longtime User
That is the code in the picture. I had an issue in a larger project so I created a test project and that is what you see. I zipped it and it is attached.

Thanks.
 

Attachments

  • code.zip
    7.6 KB · Views: 249

Dave O

Well-Known Member
Licensed User
Longtime User
Hmm, just upgraded from 2.10 to 2.11 and I'm getting the same error.
 

Dave O

Well-Known Member
Licensed User
Longtime User
Confirmed, v2.1.2 is now compiling and running well.

I did notice 2 minor oddities: If I set Color or Visible in the designer, those settings are ignored. If I set them in code, they work properly.
 

Fausto Loss

Member
Licensed User
Hi Don, thanks this lib !!!

I have a problem (used v 2.1.2), please help !
 

Attachments

  • error.txt
    2.2 KB · Views: 256

Fausto Loss

Member
Licensed User
There is still a small problem:
the message
Lib: NOTFOUND 'numberprogress_onprogresschange
Appears several times.
 

DonManfred

Expert
Licensed User
Longtime User
See the beginners guide how to work with the designer and how to create the event-sub. This is B4A in it´s basics
You can even create the sub manually.

B4X:
Sub NumberProgress_onProgressChange(current As Int, maxvalue As Int)
   
End Sub
 

Fausto Loss

Member
Licensed User
Thanks ! Works Fine !
 

Metalika

Member
hi @DonManfred
unfortunately this lib dont work any more and i cant find any same lib
i run your example and encourage with this error:

B4X:
** Activity (main) Create, isFirst = true **
Error occurred on line: 34 (Main)
java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
    at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
    at b4a.example.main._activity_create(main.java:386)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at b4a.example.main.afterFirstLayout(main.java:104)
    at b4a.example.main.access$000(main.java:17)
    at b4a.example.main$WaitForLayout.run(main.java:82)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5305)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
    at de.donmanfred.NumberProgressBarWrapper.DesignerCreateView(NumberProgressBarWrapper.java:49)
    at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:70)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:162)
    ... 21 more
** Activity (main) Resume **
 

Metalika

Member
Please try again with V3 of the lib. See #1
I Think This lib Have A Problem :
how i can set Max value in this lib For a Progress Bar ?Default value for max method set to 100 and i want to change that.
This lib have Max Method( Max As Int ) , But not Work (Probably for Interferences)
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…