Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic The tree's Node hide (Read 4261 times)
1900wn
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Dec 21st, 2009
The tree's Node hide
Dec 22nd, 2009 at 5:30am
Print Post  
Hi, about flowchar's example,is DirTree,I look at it,but i think,when the program is running, i think the node is hide,only need top.i try the collapse()function,but have problem.how i do it ? i'm crazy,thank you.
example:


  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: The tree's Node hide
Reply #1 - Dec 22nd, 2009 at 6:53am
Print Post  
Do you need to initially show only the root node and let users expand it to see its children?
  
Back to top
 
IP Logged
 
1900wn
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Dec 21st, 2009
Re: The tree's Node hide
Reply #2 - Dec 22nd, 2009 at 8:36am
Print Post  
yes,very right,show only the root node and let users expand it to see,if he want expand,what i can do?
i read example code ,like this function?
layoutTree(tldTopToBottom)
i am not sure,  do you have answers?

Thank you ,Stoyo.

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: The tree's Node hide
Reply #3 - Dec 22nd, 2009 at 11:59am
Print Post  
Doesn't it work if you call root.Collapse after building the tree in the DirTree Form_Load handler?

'read some folders
BuildTree
root.Collapse
  
Back to top
 
IP Logged
 
1900wn
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Dec 21st, 2009
Re: The tree's Node hide
Reply #4 - Dec 23rd, 2009 at 12:48am
Print Post  
thank you ,i will try , do your way,i see it
  
Back to top
 
IP Logged
 
1900wn
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Dec 21st, 2009
Re: The tree's Node hide
Reply #5 - Dec 23rd, 2009 at 1:16am
Print Post  
Thank you very much for your help,Stoyo,It success!

thank you !
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint