Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Anchor points (Read 2948 times)
fireboy
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Dec 17th, 2009
Anchor points
Mar 16th, 2010 at 4:20pm
Print Post  
Some more problems/questions:
1. Anchor points are always shown in NodeListView. I think it would be better to hide them in NodeListView and show them on the Diagram.
2. When Diagram.ShowAnchors is set to Auto, anchors appear when mouse approaches the anchor point from the right and from the bottom, but not from the left or from the top. This makes it very awkward to connect links to anchor points located on the top and left sides of a shape. I think that absolute distance from the mouse to the anchor point should be checked.
3. Is it possible to make anchor marks smaller or change their color? I can subclass a shape or a diagram if that's necessary.

Thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Anchor points
Reply #1 - Mar 16th, 2010 at 6:27pm
Print Post  
2. I can't reproduce this, could you send a sample project showing it to support@mindfusion.eu?
3. The AnchorPoint class has Brush and Size properties.

Stoyan
  
Back to top
 
IP Logged
 
fireboy
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Dec 17th, 2009
Re: Anchor points
Reply #2 - Mar 17th, 2010 at 10:08am
Print Post  
I hope that this picture illustrates the problem:



Basically, the behavior is not symmetrical. The anchors appear early when the mouse pointer is approaching the shape from the right and from the bottom. But the mouse pointer has to be quite deep (!) inside the shape for the anchors to appear when it is approaching from the left and from the top.

Any ideas?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Anchor points
Reply #3 - Mar 17th, 2010 at 2:28pm
Print Post  
It does illustrate the problem, but we can't reproduce it. Are you using standard ShapeNodes with Shape.Ellipse? Could you send us a test project, or copy the diagram and node initialization code here?

Thanks,
Stoyan
  
Back to top
 
IP Logged
 
fireboy
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Dec 17th, 2009
Re: Anchor points
Reply #4 - Mar 17th, 2010 at 3:17pm
Print Post  
Yes, I can reproduce the problem with standard Ellipse.
Code
Select All
ShapeNode node = new ShapeNode();
            node.Shape = Shapes.Ellipse;
            node.AnchorPattern = new AnchorPattern(new AnchorPoint[] {
                new AnchorPoint(50, 0),
                new AnchorPoint(50, 100),
                new AnchorPoint(0, 50),
                new AnchorPoint(100, 50)});
            workflowDiagram.Nodes.Add(node);
 



Diagram definition in XAML:

Code
Select All
<my:Diagram Width="Auto" Height="Auto" AllowInplaceEdit="False" Name="workflowDiagram" ShowGrid="True" AlignToGrid="True" LinkCreating="workflowDiagram_LinkCreating" RouteLinks="True" GridStyle="Lines" GridColor="#1B000000" GridPointSize="1" GridSizeY="10" GridSizeX="10" LinkCrossings="Arcs" LinkStyle="Cascading" UndoEnabled="True" ItemAdded="workflowDiagram_ItemAdded" AdjustmentHandlesSize="8" KeyDown="workflowDiagram_KeyDown" SelectionChanged="workflowDiagram_SelectionChanged" NodeDoubleClicked="workflowDiagram_NodeDoubleClicked" NodeModified="workflowDiagram_NodeModified"  /> 

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Anchor points
Reply #5 - Mar 17th, 2010 at 8:10pm
Print Post  
This also works fine for me. Could you post the workflowDiagram_ItemAdded code too?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint