Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DiagramNode outside the diagram (Read 2004 times)
Mephisto84
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Feb 2nd, 2010
DiagramNode outside the diagram
Feb 2nd, 2010 at 10:35am
Print Post  
Hello,

how can I avoid, that the user can pull the diagramNode out of the diagram?
On default settings, the software handels, that the node will not complitly drawn outside the diagram. But I want "a wall" on the top and on the left side.

How can I do this?

Thanks for the help!
Mephi
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramNode outside the diagram
Reply #1 - Feb 2nd, 2010 at 11:10am
Print Post  
Hi,

There's no direct support for this, but it could be implemented as follows:

- create a background node as big as the diagram
- call AttachTo(backgroundNode) for all other nodes
- set their Constraints.KeepInsideParent property

I suppose we could also add a KeepInsideDiagram constraint for the next release.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Mephisto84
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Feb 2nd, 2010
Re: DiagramNode outside the diagram
Reply #2 - Feb 2nd, 2010 at 11:31am
Print Post  
Hi,
thank u for your help!

I should descripe the root of my problem. Maybe there are other ways to solve the problem.
My prob is, that the user can move the head of the node outside the diagram... And than, he has no chance to move the node back into the diagram, because the head is the area for moving the object.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramNode outside the diagram
Reply #3 - Feb 2nd, 2010 at 12:09pm
Print Post  
Hi,

Check if setting diagram.RestrictItemsToBounds = InsideOnly will work for you.

Stoyan
  
Back to top
 
IP Logged
 
Mephisto84
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Feb 2nd, 2010
Re: DiagramNode outside the diagram
Reply #4 - Feb 2nd, 2010 at 12:35pm
Print Post  
That works... Thank you!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint