Tree Expand

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • meshmeh
    Forum Member
    • Sep 2007
    • 10

    Tree Expand

    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
    Forum Member
    • Apr 2005
    • 52

    #2
    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
    I tried to search for it quick but didn't see it - I know it's there tho. Giver a-look-see

    Comment

    • jackdaniels
      No longer a forum member
      • Mar 2007
      • 533

      #3
      Originally posted by meshmeh View Post
      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:
      Code:
      Tree.ExpandNode("Tree1", "1");

      Comment

      • meshmeh
        Forum Member
        • Sep 2007
        • 10

        #4
        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

        Comment

        Working...
        X