Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Links (Read 10345 times)
tclaffy
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Location: Chesterfield, Mo
Joined: Aug 21st, 2008
Re: Links
Reply #15 - Nov 18th, 2008 at 1:15pm
Print Post  
Stoyan,

Weeks after I got rid of the recursive link they have decided the want it back. I have set AllowSelfLoops to true and the link is being drawn but it is flat against the shape. It s a decision point and the line is flat on one side from the outgoing point to the incoming link. I guess they want that default kind of semi circle that it was. For the life of me, I am not sure what I changed that made it draw this way.

Following are my designer settings but I could be doing something else in code but I don't see anything. Do you have any recommendations on what I should look for? Thanks, Tom


Me.DiagramSteps.ActiveItemHandlesColor = System.Drawing.Color.CornflowerBlue
Me.DiagramSteps.AdjustmentHandlesSize = 4.0!
Me.DiagramSteps.AllowUnanchoredLinks = False
Me.DiagramSteps.BackBrush = New MindFusion.Drawing.LinearGradientBrush("360;#FFA9A9A9;#FFD3D3D3;0;0;0;0;")
Me.DiagramSteps.DefaultShape = MindFusion.Diagramming.Shape.FromId("Decision")
Me.DiagramSteps.DynamicLinks = True
Me.DiagramSteps.LinkBaseShape = MindFusion.Diagramming.ArrowHead.PointerArrow
Me.DiagramSteps.LinkBrush = New MindFusion.Drawing.LinearGradientBrush("360;#FFACA899;#FF000000;0;0;0;0;")
Me.DiagramSteps.LinkCrossings = MindFusion.Diagramming.LinkCrossings.Arcs
Me.DiagramSteps.LinkEndsMovable = False
Me.DiagramSteps.LinkHeadShapeSize = 6.0!
Me.DiagramSteps.LinkIntermediateShape = MindFusion.Diagramming.ArrowHead.Arrow
Me.DiagramSteps.LinkSegments = CType(4, Short)
Me.DiagramSteps.LinksRetainForm = True
Me.DiagramSteps.LinkStyle = MindFusion.Diagramming.LinkStyle.Bezier
Me.DiagramSteps.LinkTextStyle = MindFusion.Diagramming.LinkTextStyle.Rotate
Me.DiagramSteps.MeasureUnit = System.Drawing.GraphicsUnit.Pixel
Me.DiagramSteps.MergeThreshold = 10.0!
Me.DiagramSteps.PolygonalTextLayout = True
Me.DiagramSteps.RecursiveExpand = True
Me.DiagramSteps.RestrictItemsToBounds = MindFusion.Diagramming.RestrictToBounds.InsideOnly
Me.DiagramSteps.RoundedLinks = True
Me.DiagramSteps.RouteLinks = True
Me.DiagramSteps.RoutingOptions.GridSize = 16.0!
Me.DiagramSteps.RoutingOptions.NodeVicinitySize = 48.0!
Me.DiagramSteps.SelectedItemHandlesColor = System.Drawing.Color.Blue
Me.DiagramSteps.ShapeBrush = New MindFusion.Drawing.SolidBrush("#FFFFFFFF")
Me.DiagramSteps.ShapeHandlesStyle = MindFusion.Diagramming.HandlesStyle.HatchHandles
Me.DiagramSteps.ShowAnchors = MindFusion.Diagramming.ShowAnchors.Always
Me.DiagramSteps.ShowDisabledHandles = False
Me.DiagramSteps.SnapToAnchor = MindFusion.Diagramming.SnapToAnchor.OnCreateOrModify
Me.DiagramSteps.TableCaptionHeight = 8.0!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Links
Reply #16 - Nov 18th, 2008 at 3:53pm
Print Post  
We discussed modifying ControlPoints back then, so if you still have code to do that, you might move it inside an if (link.Origin != link.Destination) block.
  
Back to top
 
IP Logged
 
tclaffy
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Location: Chesterfield, Mo
Joined: Aug 21st, 2008
Re: Links
Reply #17 - Nov 18th, 2008 at 4:47pm
Print Post  
I'm not seeing anything yet. Any keywords I might find that code by? Hate to be so blind here but I am kind of in the dark as to why the lines are just straight. They have segments that highlight when I hover over them but they are just straight as the side of the shape. Is there any kind of snapto setting that affect this?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Links
Reply #18 - Nov 19th, 2008 at 8:37am
Print Post  
Are the links drawn interactively? In that case you might add a breakpoint to the LinkCreated handler and check for any changes to Style, ControlPoints or SegmentCount. Calling the Route method could change the link shape too.

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


I love YaBB 1G - SP1!

Posts: 12
Location: Chesterfield, Mo
Joined: Aug 21st, 2008
Re: Links
Reply #19 - Nov 19th, 2008 at 8:13pm
Print Post  
Acutally, I think it is doing what you would expect it to do. It is drawing a straight line from control point to control point. My testers want to see a curved line that has some separation from the decisiion point. Maybe I can do this in some sort of custom draw?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Links
Reply #20 - Nov 20th, 2008 at 8:03am
Print Post  
Are you using TableNodes? In one of the recent releases we've changed how links that connect rows in the same table are routed - from a loop at the top of a table to an orthogonal-bending link between the respective rows. You could change the style of such link to Bezier and set its ControlPoints coordinates to ones close to the original points assigned by the control.

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


I love YaBB 1G - SP1!

Posts: 12
Location: Chesterfield, Mo
Joined: Aug 21st, 2008
Re: Links
Reply #21 - Nov 20th, 2008 at 9:40pm
Print Post  
No, I just using ShapeNodes and Links. I have 3 different kinds of links. How about drawing them in different colors? Is there any sample code or can you give me any pointers on how to just draw the entire link in red, yellow, or green based on some tag in the link (which I already have).
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Links
Reply #22 - Nov 21st, 2008 at 7:13am
Print Post  
Set the DiagramLink.Pen property to a Pen instance whose Color is set to red/yellow/green.

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


I love YaBB 1G - SP1!

Posts: 12
Location: Chesterfield, Mo
Joined: Aug 21st, 2008
Re: Links
Reply #23 - Nov 21st, 2008 at 12:50pm
Print Post  
beautiful...thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint