Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Changing a DiagramLink (Read 1479 times)
scot.roach
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Dec 10th, 2008
Changing a DiagramLink
Dec 10th, 2008 at 11:02am
Print Post  
Newbie to these Controls...

1) How can I, automatically (or with code behind), have the DiagramLink move the Anchor points (Both Origin and Destination) when a ShapeNode (within a DiagramNode) is moved by the user?

2) How to allow user to move a DiagramLink?

I am trying to make a Diagram - something similiar to SQL Server Management Studio - Database Diagrams.
When user moves a Table (ShapeNode) around, the link (ForeignKeys) automatcally changes with it.
Also, user can move just the link around.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Changing a DiagramLink
Reply #1 - Dec 10th, 2008 at 11:12am
Print Post  
Hi,

1) Set the OriginAnchor and DestinationAnchor properties.

2) Assuming you are using JavaApplet mode, this is enabled by default. To let users drag a link without having to select it first, set ModificationStart = Auto.

For interactivity in ImageMap mode, check this version:
http://mindfusion.eu/Forum/YaBB.pl?board=netdg_disc;action=display;num=122813350...

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint