![]() |
A couple question about GuiTreeViewCtrl
1) Can I collapse all nodes? For large trees it's annoying to have them all expanded when the tree is created. I tried:
PHP Code:
2) Can I delete a node? 3) How would I go about setting a custom image for a node, instead of the predefined ones? |
Interestingly enough,
PHP Code:
PHP Code:
PHP Code:
|
1) If that doesn't work to collapse a node, then I don't think there is a way.
2) node_object.destroy() should work. 3) You should be able to do it the same way as with GuiTextListCtrl: PHP Code:
|
Quote:
Also, I did try icon.panelstuff() to no avail. I'll give it another try, though. |
Ya, icon.xxx() doesn't seem to be working :(
edit: nevermind, I just had to seticonsize() first. |
For #1, instead of expanded, try using visible. It collapsed fine with visible.
For #2, use destroy(). |
visible worked great, thanks :)
All problems solved, I think... yey! |
| All times are GMT +2. The time now is 06:47 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.