B4J Question [B4X] [XUI] Request for jSD_TreeList

micro

Well-Known Member
Licensed User
Longtime User
Hi SD
nice library, i can see that you are a lover of graphics and all those things that make the view more pleasant, i know if you are busy with python now 🙂, but i ask you anyway if you can implement mouse events so as to make it more beautiful (make the hand cursor appear when you are on top and other) and if the color of the fontawesone can be different from that of the branch.
Surely with mbase.GetView I can get what is required but having functions already in the library is a nice thing, of course time permitting.
Thanks and compliments
 

Star-Dust

Expert
Licensed User
Longtime User
I'll see what I can do for the next update

I didn't understand the mouse issue
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
I honestly don't understand what handling these mouse events should do.
The ones that the library uses are the click of the right button and the left button that raises the LongClick

What should other events do?
 
Upvote 0

micro

Well-Known Member
Licensed User
Longtime User
Thanks SD
for the addition
This error appears when loading the component (B4J project)

java.lang.NullPointerException

at anywheresoftware.b4a.objects.B4XViewWrapper$XUI.PaintOrColorToColor(B4XViewWrapper.java:958)

at b4j.example.b4xtree._designercreateview(b4xtree.java:823)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:673)

at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:240)

at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at anywheresoftware.b4a.BA.raiseEvent2(BA.java:109)

at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98)

at anywheresoftware.b4j.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:79)

at anywheresoftware.b4j.objects.LayoutBuilder.loadLayout(LayoutBuilder.java:110)

at anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(PaneWrapper.java:101)

at b4j.example.main$ResumableSub_CaricaLayout.resume(main.java:1403)

at b4j.example.main._caricalayout(main.java:1337)

at b4j.example.main$ResumableSub_OkRegistration.resume(main.java:845)

at b4j.example.main._okregistration(main.java:808)

at b4j.example.main$ResumableSub_AppStart.resume(main.java:441)

at b4j.example.main._appstart(main.java:184)
...............

solved
surely by default the color for the symbol is not set, so you have to open the designer , set and save
Thanks
 
Last edited:
Upvote 0

micro

Well-Known Member
Licensed User
Longtime User
Hi SD
can you insert this function?
Branch.GetItems or something that lets me know if it has items (leaf) or not
Thanks 🙏
 
Last edited:
Upvote 0
Top