Collapse and expand Tree View Widget from code

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Posts: 366
Joined: Wed Jun 07, 2017 5:37 am
Location: Henrico, VA

Re: Collapse and expand Tree View Widget from code

Post by bwmilby » Thu Sep 26, 2019 12:55 pm

That is not possible as a single command in the current implementation. You can get the fold state array and then create one that will have everything expanded. Since the widget constructs the fold state array in a lazy manner (only adds keys as they are visited and unfolded) and the entire tree is not parsed initially depending on size, adding it to the widget will take a bit of code. Probably a good Hacktoberfest addition.
Brian Milby

Script Tracker

Post Reply

Return to “Talking LiveCode”