PDA

View Full Version : Tree Expand



meshmeh
02-11-2009, 12:27 PM
hi,
I want to create a button that when I click it , it will Expand just node 1 and not child nodes "1.*" under it in the tree. any suggestion how?

drgfx
02-11-2009, 01:15 PM
I saw at least one example of an explorer type tree in the forums a ways back.. I believe it was in the AutoPlay Media Studio v.6.0 examples (http://www.indigorose.com/forums/forumdisplay.php?f=55)
I tried to search for it quick but didn't see it - I know it's there tho. Giver a-look-see :rolleyes

jackdaniels
02-11-2009, 03:30 PM
hi,
I want to create a button that when I click it , it will Expand just node 1 and not child nodes "1.*" under it in the tree. any suggestion how?

I am not sure if it is what you meant but this is how you can expand node...

On Button Click Code:

Tree.ExpandNode("Tree1", "1");

meshmeh
02-12-2009, 01:46 PM
that what I did
ChildCount = Tree.GetChildCount("tree", "1");

-- Check for number of elements
if ChildCount > 0 then
min = 1; -- The number to start at
for count = min, ChildCount do
Tree.CollapseNode("tree", "1."..count);
end
end
thank you any way