Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/07/2004 at 11:25, xxxxxxxx wrote:
User Information: Cinema 4D Version: 8.503 Platform: Windows ; Language(s) : C++ ;
--------- So, how do you enact an "Expand All"/"Collapse All" type function on a TreeViewCustomGUI Tree? I haven't found any clues yet...
Thanks, Robert
On 25/07/2004 at 23:04, xxxxxxxx wrote:
You have to keep track of the opened/closed status yourself. Implementing an "expand all" should then be trivial; just set all objects to open. C4D will ask you for this in TreeViewFunctions::IsOpened(). (Sorry if any of this is broken. I haven't tried it myself.)
On 26/07/2004 at 07:43, xxxxxxxx wrote:
Right, figured that out finally. Took a little consideration of my TreeViewFunctions::Open() method as implemented to realize that all I had to do was to SetBit() or DelBit() of the 'expand' flag for all of the entries (and the rest is taken care of). One of those cases where I wasn't certain if programmatic action would be taken as well as user action.