Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic New ArrowHeads Collection vs Old Enum (Read 1803 times)
BudMan
YaBB Newbies
*
Offline


Credidi me felem vidisse

Posts: 45
Joined: Jul 14th, 2007
New ArrowHeads Collection vs Old Enum
May 21st, 2010 at 10:05pm
Print Post  
Between the time I developed a prototype app using the Trial version of FlowChart.NET and the time I purchased the fully licensed version, you guys changed the logic for rendering the HeadShape of DiagramLinks. That has broken my code and I need to patch it up. No HUGE deal, but I have a problem.

Previously the LinkHeadShape was assigned an integral value from the old ArrowHead Enumeration. Now the LinkHeadShape is a Shape type from the ArrowHeads collection.

The problem is, per MindFusion customer support, I deleted the Trial version of FlowChart.NET before installing the new version. When I did, I lost the object model which told me what Enum integral value corresponed to which shape. E,g, 0 = None.

Could you reply with a list of the old Enum values for the various LinkHead shapes so I can path up the program?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: New ArrowHeads Collection vs Old Enum
Reply #1 - May 22nd, 2010 at 6:56am
Print Post  
The control calls this method when loading arrowheads from the older version file format:

Code
Select All
internal static string[] HeadShapes = {"None", "Arrow", "Triangle", "Circle",
	"Tetragon", "Rhombus", "BowArrow", "PointerArrow",
	"PentagonArrow", "DoubleArrow", "Reversed", "RevTriangle",
	"Quill", "RevWithLine", "RevWithCirc", "BackSlash",
	"Slash", "DefaultFlow"};

internal static Shape HeadShapeFromOldId(int id)
{
	return Shape.FromId(HeadShapes[id]);
} 



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


Credidi me felem vidisse

Posts: 45
Joined: Jul 14th, 2007
Re: New ArrowHeads Collection vs Old Enum
Reply #2 - May 24th, 2010 at 1:34pm
Print Post  
Thanks Stoyan, that is what I needed.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint