Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic about Collapse function (Read 2630 times)
1900wn
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Dec 21st, 2009
about Collapse function
Dec 24th, 2009 at 7:46am
Print Post  
i am create a mfc MDI project, i create new class
mysite.cpp, mysiteDoc.cpp ,mysiteView.cpp in the project, i used createbox function ,and use createview function link them,create three boxs,that,i use this code ,make him tree:

TreeLayout tl;tl.CreateDispatch(_T("FlowChartPro.TreeLayout"));
tl.SetRoot(m_FCRoot);

tl.SetType(tltCentralized);
tl.SetDirection(tldTopToBottom);
tl.SetArrowStyle(tlaPerpendicular3);/
tl.SetNodeSpacing(45);//
tl.SetLevelSpacing(150);//
tl.SetKeepRootPos(FALSE);
tl.SetReversedArrows(FALSE);
tl.SetKeepGroupLayout(FALSE);
but when i use m_FCRoot.collapse() ,no matter,the root nod show the other node ?what 's wrong? thank you .
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: about Collapse function
Reply #1 - Dec 24th, 2009 at 10:25am
Print Post  
Do the links in your tree point from parent to child or from child to parent? If the latter, try setting the ExpandOnIncoming property.
  
Back to top
 
IP Logged
 
1900wn
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Dec 21st, 2009
Re: about Collapse function
Reply #2 - Dec 25th, 2009 at 2:48am
Print Post  
ok,i'm try. thank you .
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint