B4A Library [B4X] [XUI] SD_TreeList

Star-Dust

Expert
Licensed User
Longtime User
This is a first text of the changes I meant. It is a question of recalling the drawing function recursively. For the moment I removed the back panel to help the recursion method.

I don't know if you can see clearly from the image, but the animation loses a lot and there is the risk that moving ever further to the right ends up off-screen

 

Unobtainius

Active Member
Licensed User
Longtime User
Genius. I have no idea how you did it, but its great! Keep up the excellent work Star-Dust
 

Star-Dust

Expert
Licensed User
Longtime User

Alex_Puz

Member
Licensed User
Longtime User

Cool! How to set up some custom icon for a branch. Could you provide some code?
 

Star-Dust

Expert
Licensed User
Longtime User
in the example you will find the code. for the icon used in font of tawesone to be inserted as a parameter to the AddBranch method
 

Alex_Puz

Member
Licensed User
Longtime User
The idea is that of having it as property.
It's a simple thing to do but I'm off site I don't know if I can do it today
When you expect done "branch inside branch"? I am going to make some project then can use it.
 

Star-Dust

Expert
Licensed User
Longtime User
I've already done it, I've included several new features, but I don't have the time to prepare the documentation to publish it. I hope in the coming weeks.

It will be possible to have leaves with 2 lines of Label to insert information under the name of the leaf. When the branches are opened the branch names will be in bold. And it has the method put on top for both the leaves and the branches
 
Last edited:

Alex_Puz

Member
Licensed User
Longtime User
Great! If possible send me sample code and library i will try and let you know ASAP
 

Star-Dust

Expert
Licensed User
Longtime User
When I can I will put the library and the example on this thread so you and others can try it. At the moment I am implementing it on my App and therefore it is being perfected.
 

Star-Dust

Expert
Licensed User
Longtime User
Only veetically. As you can see in the video
 

Star-Dust

Expert
Licensed User
Longtime User
How to programmatically set up size and position of sd Tree List?
I forgot to enter GetBase
For the moment put it inside a Panel and set TreeList anchored for all 4 sides to 0Dip.

When you change the panel you will also change TreeList, obviously you have to call Invalidate.

Or wait for the next update.
 

Alex_Puz

Member
Licensed User
Longtime User
I forgot to enter GetBase
For the moment put it inside a Panel and set TreeList anchored for all 4 sides to 0Dip.

When you change the panel you will also change TreeList, obviously you have to call Invalidate.

Or wait for the next update.
thks, Noted
 

Alex_Puz

Member
Licensed User
Longtime User
Can you add some function to modify text of Leafs or Branchs.
For example:
BXTree1.Branch(Index).text="some text"
BXTree1.Branch(Index).Enabled=True/False
BXTree1.Branch(Index).Visible=True/False
BXTree1.Branch(Index).Leaf(index).Text="SOME Text"
BXTree1.Branch(Index).Leaf(index).Enabled=True/false
BXTree1.Branch(Index).Leaf(index).Visible=True/false

also
add read function as
BxTree1.Branch.Count
BxTree1.Branch(Index).Leaf.Count
BxTree1.branch(index).Parent
if Parent=root then Parent= -1
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…