Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic the box viewer' problem (Read 3838 times)
1900wn
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Dec 21st, 2009
the box viewer' problem
Jan 22nd, 2010 at 3:21am
Print Post  
sorry, a new problem.
when i create lots of box ,one is rootnode,the other is subnode,like this:
--------------------- 
                  o   |
o o o o o o o o o o o o o o o o o o o o o 
                      |
                       |
---------------------
this line "------------|"is screen, view's left and right sides in document.
when i run program,initial view is this picture,but i think,the program running,
the viewer is on the root box,also.the rootbox is in the middle of viewer like this:

          ---------------------- 
         |                           |
         |           o              |
         |                           |
oo o o o o o o o o o o o o o o o o o o 
         |                           |                              
      -------------------------- ----->this is our viewer, on the initial ,we can see the rootbox.

i don't know , i say it very clear?
« Last Edit: Jan 22nd, 2010 at 7:38am by 1900wn »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: the box viewer' problem
Reply #1 - Jan 22nd, 2010 at 12:06pm
Print Post  
Do you need to center the tree inside the view?
  
Back to top
 
IP Logged
 
1900wn
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Dec 21st, 2009
Re: the box viewer' problem
Reply #2 - Jan 22nd, 2010 at 2:43pm
Print Post  
yes,in the default,the view is left, we can't see the middle node,i think
when the programe is run, the view is in the middle of tree,also is root node ,like box. how i can do it ?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: the box viewer' problem
Reply #3 - Jan 22nd, 2010 at 3:16pm
Print Post  
Try calling the BringIntoView method; it should center on the specified node if initially it wasn't in the visible area.
  
Back to top
 
IP Logged
 
1900wn
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Dec 21st, 2009
Re: the box viewer' problem
Reply #4 - Jan 25th, 2010 at 2:40am
Print Post  
It's OK,thank you .
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint