B4A Library [B4X] [XUI] SD_TreeList

Star-Dust

Expert
Licensed User
Longtime User

Star-Dust

Expert
Licensed User
Longtime User
Update rel 0.09
  • Add OnlyCornerColor property '
    Color only the frame of the branch image instead of the whole background
  • Add setTimeAnimation property
    Set the animation time. Zero for no animation
  • Add TextSize property
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
Update rel. 0.11
Add SetLayout method
Add GetBase
 

Star-Dust

Expert
Licensed User
Longtime User
Update rel 0.12
  • Add Badge on Leaf:
    SetLeafBadge (IDLeaf As String, BadgeActive As Boolean, BadgeText As String)
 
Last edited:

james_sgp

Active Member
Licensed User
Longtime User
Is it possible to use CS Builder with the text, as I`d like to highlight un-finished items in my list?

Rgds, James
 

Star-Dust

Expert
Licensed User
Longtime User
Is it possible to use CS Builder with the text, as I`d like to highlight un-finished items in my list?

Rgds, James
At the moment it is not possible, I will consider for the next update
 

Star-Dust

Expert
Licensed User
Longtime User
Hi @Star-Dust
I want to print/share the all-expanded tree as a document, how?
You mean if it is possible to have the tree complete with leaves transferred to a type like Map, XML or JSon string?

At the moment it is not foreseen, it could be added in the future.
 

Star-Dust

Expert
Licensed User
Longtime User
Update rel. 0.13
  • Added TreeToJson method. Put the whole tree inside a Json string
 

Hamied Abou Hulaikah

Well-Known Member
Licensed User
Longtime User
TreeToJson method saved us a lot of works, thank you
Another wish: If you added TreeToHtml or TreeToText method (for print purpose), the output example:
output example:
-root1
--subcat1
---leaf1
---leaf2
-root2
--subcat1
---subcat1
----leaf1
-root3
So we can print it easily
Thank you in advance
 

Star-Dust

Expert
Licensed User
Longtime User
This is not achievable. I chose JSON specifically because the values contained in the tree are not single strings but a set of fields. Name, information, Badge, Id.
But on the forum you can find different sources that allow you to process the JSON to turn it into a map or into tri flies that you can adapt to your needs.

A function to extract data from the tree was needed and could only be done from within. You can do other specific functions yourself thanks to the JSON string that you can now get.
 

mike1967

Active Member
Licensed User
Longtime User
Can provide me samples ? I must to show and image.thanks in advance.
 

Star-Dust

Expert
Licensed User
Longtime User
It's a conversation from many months ago, I don't know exactly what kind of examples you are looking for.

If you are looking for a recursive TreeList there are already examples in post # 1
It's a conversation from many months ago, I don't know exactly what kind of examples you are looking for.

If you are looking for a recursive TreeList there are already examples in post # 1
 

Star-Dust

Expert
Licensed User
Longtime User
Update 0.14
  1. Added Add2 method (You can select the font of the symbol of each branch)
 

Daica

Active Member
Licensed User
Hi @Star-Dust , this is a great library. Is there any way you can add an option to make the side lines smaller or maybe even "remove" it by making it transparent or something?

For example, (I just used windows paint to show this example)

So maybe 1 option would be, SideLineColor, and you can set the width of the line and color, so you can set to transaprent to make it invisible.

Another idea is, instead of making the line go all the way down like how it is now, make it similar to a real tree view, kind of like windows explorer with the option to change the expand/collapse menu Icon using FontAwesome?
 

Star-Dust

Expert
Licensed User
Longtime User
You can set the color as transparent.

If you want a Windows-like tree use the library try to see the SD_ViewExtra and SD_Menu library. This class is designed to have a different style than windows.
 

Daica

Active Member
Licensed User
You can set the color as transparent.

If you want a Windows-like tree use the library try to see the SD_ViewExtra and SD_Menu library. This class is designed to have a different style than windows.

Thanks, I'll have a look at your other library. I just really like the looks of this library and the animations, simple, yet beautiful, plus the badge feature is really useful, as well as the json feature.

I figure adding more options to this library would make it even more better
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…