Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Drag and Drop between Table Nodes (Read 6420 times)
njackson60
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Oct 16th, 2008
Drag and Drop between Table Nodes
Oct 31st, 2008 at 1:19pm
Print Post  
Hi,

I have a diagram where I create objects ("Steps" in a workflow, really) that are table nodes.  There are certain rows in a table node that can link to rows in other table nodes.

What I notice is that when I try to link a row in table node "A" to a row in table node "B" the linking works, but it links from the opposite side.  For example, if node "B" is positioned to the left of node "A" and I try to link "A" to "B", I would expect the link to go from the right-hand side of node "A" to the left-hand side of node "B".  But that doesn't happen; it links the right-hand side of node "A" to the right-hand side of node "B".

Is this by design or possibly some field I'm not setting/method I'm not calling?

I'm using version 1.0 of the WpfDiagram.

Thanks!

Neal
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drag and Drop between Table Nodes
Reply #1 - Oct 31st, 2008 at 2:17pm
Print Post  
Hi,

Have you set the AnchorPattern property of the table or rows?

Stoyan
  
Back to top
 
IP Logged
 
njackson60
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Oct 16th, 2008
Re: Drag and Drop between Table Nodes
Reply #2 - Oct 31st, 2008 at 3:25pm
Print Post  
Hi Stoyan,

Thanks for the prompt reply.  Certain rows have the AnchorPattern set to :

           Rows[rowindex].AnchorPattern =
               new AnchorPattern(new[] { new AnchorPoint(100, 50, false, true, MarkStyle.Circle) });

There is no AnchorPattern set on the TableNode itself.

Thanks!

Neal
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drag and Drop between Table Nodes
Reply #3 - Oct 31st, 2008 at 7:39pm
Print Post  
The control should place the link ends where the link would have a shorter length, so the link should look like [B]<--[A]. However the anchor points override this, and since you have a right-hand anchor point for outgoing links, the link might start at the right of A and still end at the right of B if there isn't an incoming-links anchor point defined on the left of B. I'm not sure I understood it correctly, so you might again email me a file showing the problem.

Stoyan
  
Back to top
 
IP Logged
 
njackson60
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Oct 16th, 2008
Re: Drag and Drop between Table Nodes
Reply #4 - Nov 4th, 2008 at 3:56pm
Print Post  
Hi,

I have some screenshots of what I'm doing and how it's still not working, even when I set a the AnchorPattern at the TableNode level.  Can I email these screenshots to you?

Thanks!

Neal
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drag and Drop between Table Nodes
Reply #5 - Nov 4th, 2008 at 4:18pm
Print Post  
Hi,

Sure, please email them, including a saved diagram file if possible.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drag and Drop between Table Nodes
Reply #6 - Nov 5th, 2008 at 9:16am
Print Post  
Hi,

We've managed to reproduce this with TableNode.ConnectionStyle = Rows and having an incoming anchor point only  in the TableNode.AnchorPattern. With ConnectionStyle = Rows only the rows' anchor points are checked, no incoming point is found, and the control chooses to attach the link to the right side (without actually attaching it to the AP there) because the links becomes shorter that way. Now if you set ConnectionStyle = Both, the TableNode.AnchorPattern will be checked too and the incoming links should connect to the tables left side as expected.

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


I love YaBB 1G - SP1!

Posts: 17
Joined: Oct 16th, 2008
Re: Drag and Drop between Table Nodes
Reply #7 - Nov 7th, 2008 at 1:58pm
Print Post  
Hi Stoyan,

I tried setting the ConnectionStyle (prior to any AnchorPatterns being set) to ConnectionStyle.Both, but it still links to the right-hand side node.

I'm dealing with version 1.0 - do you think 2.0 would work?

Thanks,

Neal
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drag and Drop between Table Nodes
Reply #8 - Nov 7th, 2008 at 4:04pm
Print Post  
Yes, there is a high probability that V2 will work 8)
  
Back to top
 
IP Logged
 
njackson60
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Oct 16th, 2008
Re: Drag and Drop between Table Nodes
Reply #9 - Nov 19th, 2008 at 6:10pm
Print Post  
Hi Stoyan,

Upgrading from 1.0 Trial to 2.0 [Purchased] had no effect.

Any other suggestions?

Thanks!

Neal
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drag and Drop between Table Nodes
Reply #10 - Nov 20th, 2008 at 7:56am
Print Post  
Hi Neal,

Could you email us a small project that shows the problem, creating the tables with exactly the same settings as in your main app?

Thanks,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint