Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Flowchart.NET v5.2 beta (Read 6525 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Flowchart.NET v5.2 beta
Jan 27th, 2009 at 3:32pm
Print Post  
https://mindfusion.eu/_beta/fcnet52.zip

This archive contains only the updated assemblies. You need an existing Flowchart.NET installation to be able to use them in design-time.

This version contains two new layout classes. OrthogonalLayout, which arranges the items like this:


and CircularLayout:


Note that the OrthogonalLayout class available in previous versions, which actually arranges only the links while preserving node positions, is now called OrthogonalRouter.

Version 5.2 also includes many customer requested features:

~ the LinkHitDistance property lets you specify how far from links a click should be considered a hit
~ link labels are now rendered in DiagramView3D
~ LaneGrid cells can display text
~ LaneGrid rows and columns can be inserted interactively
~ DrawForeground event
~ resizing nodes with the KeepRatio constraint always fixes the corner opposite to the handle being dragged
~ SnapToNodeBorder is now considered also when creating links
~ ContainerNode.UnfoldedSize
~ now AnchorPatterns can be associated with Shape definition
~ Shape objects can be defined without an outline. This and the feature above can be useful for defining electrical shapes

Even if you don't try any new features, it still helps us a lot to check if your existing applications run fine with the new version.

Many thanks to anyone who tries this beta version!
  
Back to top
 
IP Logged
 
Oskar
YaBB Newbies
*
Offline


I like YaBB 1G - SP1!

Posts: 21
Joined: Nov 28th, 2008
Re: Flowchart.NET v5.2 beta
Reply #1 - Feb 2nd, 2009 at 10:23am
Print Post  
How do I serialize a shape? In the old version we used Shape.FromXmlElement and Shape.SaveTo to serialize and deserialize a shape but they seem to have been removed in this version.
And if I try to serialize the shape directly this exception is thrown “MindFusion.Diagramming.Shape cannot be serialized because it does not have a parameterless constructor.”
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Flowchart.NET v5.2 beta
Reply #2 - Feb 2nd, 2009 at 11:11am
Print Post  
Get this updated version:
https://mindfusion.eu/_beta/fcnet52.zip

Both the save and load methods now use the DOM API, and they have new prototypes:

SaveToXml(XmlElement, XmlPersistContext);
LoadFromXml(XmlElement, XmlPersistContext);

The load method is no longer static. You must create a Shape instance, and then call LoadFromXml on it.

Stoyan
  
Back to top
 
IP Logged
 
jf2020
Junior Member
**
Offline


I love FlowChart!

Posts: 63
Joined: Feb 23rd, 2006
Re: Flowchart.NET v5.2 beta
Reply #3 - Feb 3rd, 2009 at 4:38pm
Print Post  
Hi, 

I still have a few issues with LaneGrid in this version. I sent an email to support@mindfusion.eu describing them. Please let me know if you've got it.

JF
  
Back to top
 
IP Logged
 
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Re: Flowchart.NET v5.2 beta
Reply #4 - Feb 3rd, 2009 at 8:20pm
Print Post  
Hi,

I have a compilation error:
'MindFusion.Diagramming.DiagramItem' does not contain a definition for 'MasterGroup'
when I try to do:
Code
Select All
DiagramItem node [...]
if (node.MasterGroup != null)
    return node.MasterGroup.MainItem; 



It used to compile before (it is someone else's code using Flowchart on the same solution...)... Is there an equivalent?

Thanks,
Marie
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Flowchart.NET v5.2 beta
Reply #5 - Feb 4th, 2009 at 8:11am
Print Post  
Hi Marie,

We've moved MasterGroup from DiagramItem to DiagramNode. Change the 'DiagramItem node' declaration to 'DiagramNode node', and that code will compile fine.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Flowchart.NET v5.2 beta
Reply #6 - Feb 4th, 2009 at 2:20pm
Print Post  
Hi JF,

1. The grid's TopLeftAreaStyle is null by default. You will have to assign a new Style object to it. As for the text not being displayed - this is a bug. The text doesn't get displayed for some reason when TopLeftAreaStyle is null. We will fix this. As a workaround you can set a new Style object to the TopLeftAreaStyle property to see the text display.

2. This is intended design, only we didn't make it enough error-proof. The reason behind it is to avoid creating new StringFormat object for each cell which could lead to a huge amount of StringFormat objects for large grids. And since the StringFormat objects are disposable, they most likely use graphical resources, which is not good to be wasted.

5. Looking at your image the top-left area is not drawn at all. Otherwise it should cover both the row and the column headers. Try fixing the area Style (see 1.) and let me know what happens and if it is satisfactory.

6. I was able to reproduce this and will check to see what is causing it.

>> Also trying to resize the height of the Column Header doesn’t work. I get the feedback but the height stays as is.

It is working fine here. Any more info you can give on this one? You should also keep in mind that there are certain minimums that are observed when modifying the size of the headers.

7. I have reproduced this one too and will fix it.

Meppy
  
Back to top
 
IP Logged
 
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Re: Flowchart.NET v5.2 beta
Reply #7 - Feb 4th, 2009 at 3:52pm
Print Post  
Thanks Stoyan Cheesy!

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Flowchart.NET v5.2 beta
Reply #8 - Feb 5th, 2009 at 8:40am
Print Post  
https://mindfusion.eu/_beta/fcnet52.zip

jf2020: the assemblies from this archive should fix the LaneGrid issues.

everyone: the zip file includes updated docs for v5.2
  
Back to top
 
IP Logged
 
Oskar
YaBB Newbies
*
Offline


I like YaBB 1G - SP1!

Posts: 21
Joined: Nov 28th, 2008
Re: Flowchart.NET v5.2 beta
Reply #9 - Feb 5th, 2009 at 12:54pm
Print Post  
Regarding shape serialization.

I’ve now manage to save a shape to xml, but I can’t load the same shape. LoadFromXml throws an “Object reference not set to an instance of an object” exception. I think the problem is that the method needs an XmlPersistContext and I don’t have a context. So I’m trying to create a dummy context with a dummy diagram but I can’t get it to work.
  
Back to top
 
IP Logged
 
Oskar
YaBB Newbies
*
Offline


I like YaBB 1G - SP1!

Posts: 21
Joined: Nov 28th, 2008
Re: Flowchart.NET v5.2 beta
Reply #10 - Feb 5th, 2009 at 1:07pm
Print Post  
Never mind. It was the shape instance that was null. The deserialization works fine now.
  
Back to top
 
IP Logged
 
Oskar
YaBB Newbies
*
Offline


I like YaBB 1G - SP1!

Posts: 21
Joined: Nov 28th, 2008
Re: Flowchart.NET v5.2 beta
Reply #11 - Feb 6th, 2009 at 9:43am
Print Post  
I found a weird problem. If I select a shape and a link and then deselect them and select another shape and try to resize or rotate that other shape, it starts jumping around.

I’m using version 5.2.0.28527
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Flowchart.NET v5.2 beta
Reply #12 - Feb 6th, 2009 at 9:49am
Print Post  
Please email a saved XML diagram file to support@mindfusion.eu so we can test this with your settings.

Stoyan
  
Back to top
 
IP Logged
 
Oskar
YaBB Newbies
*
Offline


I like YaBB 1G - SP1!

Posts: 21
Joined: Nov 28th, 2008
Re: Flowchart.NET v5.2 beta
Reply #13 - Feb 6th, 2009 at 10:02am
Print Post  
Sorry, my mistake. That was a bug in our code. Embarrassed
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Flowchart.NET v5.2 beta
Reply #14 - Feb 6th, 2009 at 10:06am
Print Post  
That's great 8) we were just starting to build the v5.2 installers ...
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint