(UTC)
Welcome, Guest. Please
Login
or
Register
News:
Board Index
Help
Search
Login
Register
The MindFusion Forums
›
Flow Diagramming Components
›
Windows Forms
› Links
(Moderator: Slavcho)
‹
Previous Topic
|
Next Topic
›
Pages:
1
[2]
Send Topic
Print
Links (Read 10372 times)
tclaffy
YaBB Newbies
Offline
I love YaBB 1G - SP1!
Posts: 12
Location: Chesterfield, Mo
Joined: Aug 21
st
, 2008
Re: Links
Reply #15 -
Nov 18
th
, 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!
IP Logged
Stoyo
God Member
Offline
MindFusion support
Posts: 13230
Joined: Jul 20
th
, 2005
Re: Links
Reply #16 -
Nov 18
th
, 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.
IP Logged
tclaffy
YaBB Newbies
Offline
I love YaBB 1G - SP1!
Posts: 12
Location: Chesterfield, Mo
Joined: Aug 21
st
, 2008
Re: Links
Reply #17 -
Nov 18
th
, 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?
IP Logged
Stoyo
God Member
Offline
MindFusion support
Posts: 13230
Joined: Jul 20
th
, 2005
Re: Links
Reply #18 -
Nov 19
th
, 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
IP Logged
tclaffy
YaBB Newbies
Offline
I love YaBB 1G - SP1!
Posts: 12
Location: Chesterfield, Mo
Joined: Aug 21
st
, 2008
Re: Links
Reply #19 -
Nov 19
th
, 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?
IP Logged
Stoyo
God Member
Offline
MindFusion support
Posts: 13230
Joined: Jul 20
th
, 2005
Re: Links
Reply #20 -
Nov 20
th
, 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
IP Logged
tclaffy
YaBB Newbies
Offline
I love YaBB 1G - SP1!
Posts: 12
Location: Chesterfield, Mo
Joined: Aug 21
st
, 2008
Re: Links
Reply #21 -
Nov 20
th
, 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).
IP Logged
Stoyo
God Member
Offline
MindFusion support
Posts: 13230
Joined: Jul 20
th
, 2005
Re: Links
Reply #22 -
Nov 21
st
, 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
IP Logged
tclaffy
YaBB Newbies
Offline
I love YaBB 1G - SP1!
Posts: 12
Location: Chesterfield, Mo
Joined: Aug 21
st
, 2008
Re: Links
Reply #23 -
Nov 21
st
, 2008 at 12:50pm
Print Post
beautiful...thanks
IP Logged
Pages:
1
[2]
Send Topic
Print
‹
Previous Topic
|
Next Topic
›
Forum Jump »
Board Index
» 10 most recent Posts
» 10 most recent Topics
General
News
Discussion
Flow Diagramming Components
News
Feature Suggestions
Windows Forms ««
WPF
Html Canvas & JavaScript
Blazor
ASP.NET MVC
ASP.NET
Java Swing
ActiveX
.NET MAUI and Xamarin
Android
Cocoa Touch
Bug Reports
Scheduling and Gantt Components
News
Feature Suggestions
Windows Forms
WPF
Silverlight
ASP.NET
Html & JavaScript
Java Swing
.NET Compact Framework
.NET MAUI and Xamarin
Bug Reports
Gauge and Chart Components
News
Feature Suggestions
Windows Forms
WPF
Silverlight
ASP.NET
Html Canvas & JavaScript
Java Swing
Xamarin
Bug Reports
Grid and Spreadsheet Components
News
Feature Suggestions
Windows Forms
WPF
Html & JavaScript
Java Swing
Bug Reports
Virtual Keyboard Components
News
Windows Forms
WPF
Avalonia
Java Swing
Html & JavaScript
Bug Reports
MindFusion.Reporting
News
Feature Suggestions
Windows Forms
WPF
Silverlight
Bug Reports
MindFusion.UI controls
Windows Forms
WPF
ASP.NET
Other MindFusion tools
News
Feature Suggestions
Discussion
Bug Reports
Archived Boards
Silverlight
Universal Windows Platform
« Board Index
‹ Board
The MindFusion Forums
» Powered by
YaBB 2.6.11
!
YaBB Forum Software
© 2000-2024. All Rights Reserved.