Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Create 2 boxes (Read 1696 times)
T.Pascal
Guest


Create 2 boxes
Mar 10th, 2006 at 6:42am
Print Post  
hi , i'd like to created 2boxes at the same time.

( all my boxes are resized to (20,20) )
after had had created a box , i want that a second box is created under the first one.
i know that i have to use fc.createBox(x,y+40,20,20) to create a box , but i dont know where to find the x,y coordonate of the top left corner of the first box
  
Back to top
 
IP Logged
 
T.Pascal
Guest


Re: Create 2 boxes
Reply #1 - Mar 10th, 2006 at 9:12am
Print Post  
its ok , i know how to foind it. I use node.BoundingRect.X and node.BoundingRect.Y to get node position
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Create 2 boxes
Reply #2 - Mar 10th, 2006 at 9:17am
Print Post  
Yes, you could set the new box location like this

rc = firstBox.BoundingRect;
rc.Offset(0, 40);
secondBox.BoundingRect = rc;
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint