Erel B4X founder Staff member Licensed User Longtime User Feb 26, 2021 #2 You don't need a method/class/library for this. You need to go over the items and convert each item to a Map with its text and children as a list. Upvote 0
You don't need a method/class/library for this. You need to go over the items and convert each item to a Map with its text and children as a list.
LucaMs Expert Licensed User Longtime User Feb 26, 2021 #3 Erel said: You don't need a method/class/library for this. You need to go over the items and convert each item to a Map with its text and children as a list. Click to expand... I know; and once done... add that code to a class/library Upvote 0
Erel said: You don't need a method/class/library for this. You need to go over the items and convert each item to a Map with its text and children as a list. Click to expand... I know; and once done... add that code to a class/library
LucaMs Expert Licensed User Longtime User Feb 27, 2021 #4 Done but it's not enough, because I cannot get (and then reload from file) the TreeItem event name. I think the only way is to force the developer to use as event name the same as the text of the TreeItem (not a really good solution, but... how else to do?) No, because the text can contain spaces, the event name cannot. Also, the user may want to change the text at runtime and the event name cannot be changed as well. EDIT: On the other hand, the only event is this, probably not essential: Last edited: Feb 27, 2021 Upvote 0
Done but it's not enough, because I cannot get (and then reload from file) the TreeItem event name. I think the only way is to force the developer to use as event name the same as the text of the TreeItem (not a really good solution, but... how else to do?) No, because the text can contain spaces, the event name cannot. Also, the user may want to change the text at runtime and the event name cannot be changed as well. EDIT: On the other hand, the only event is this, probably not essential: