Page Index Toggle Pages: 1 2 [3] 4 5 6 Send TopicPrint
Very Hot Topic (More than 25 Replies) Undo and groups (Read 58823 times)
rusted
YaBB Newbies
*
Offline



Posts: 42
Joined: Nov 3rd, 2005
Re: Undo and groups
Reply #30 - Nov 7th, 2005 at 2:51pm
Print Post  
You mention beta builds ... If I purchase Flowchart.Net after evaluation, will all these fixes be included in the build I purchase?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Undo and groups
Reply #31 - Nov 7th, 2005 at 4:50pm
Print Post  
The fix will be available with version 4. With a purchase you get free upgrades for six months, so if you buy the current version, you will also get  version 4 when it's released.

Anyway, the Flowchart.NET evaluation dlls are not functionality or time -limited, so you can develop your application with them.

Stoyan
  
Back to top
 
IP Logged
 
rusted
YaBB Newbies
*
Offline



Posts: 42
Joined: Nov 3rd, 2005
Re: Undo and groups
Reply #32 - Nov 7th, 2005 at 10:33pm
Print Post  
Not sure it helps me if the version I purchase does NOT have the fixes in them, as that will mean initially a buggy implementation of our software until the v4 release.

Another issue has raised it's head, to do with using the LayoutSystem.  When creating a new LayoutSystem and invoking the Arrange method, the tables disappear completely, and the small boxes with the images get located a distance away from the main boxes!!!

Can I ask how long this version has been out?
Undecided
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Undo and groups
Reply #33 - Nov 8th, 2005 at 6:17am
Print Post  
I can't give any advice whether to purchase or when to purchase Lips Sealed Version 4 will be out in a couple of weeks if there aren't any hard to fix bugs reported by testers.

Regarding layout, by default the layout classes treat each item in a group as a distinct graph node. To fix that, set the IgnoreLayout property of the subordinated items to true, so the layouts won't change their position. Thus the subordinated items will just stay attached to their master nodes.

Another option is to enable the KeepGroupLayout property of layout classes before calling Arrange. That property is not documented, but it functions almost the same way as if all group subordinated items have IgnoreLayout = true.

The difference between the two methods is how the layout routines calculate the nodes size, the former method uses only the bounds of the master item, the latter uses the rectangle that bounds all items.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Undo and groups
Reply #34 - Nov 8th, 2005 at 12:22pm
Print Post  
The today's build of the beta version is here:

https://mindfusion.org/_beta/FCNetDemo.zip

It now restores both Z index and the order of items withing groups when undoing item's deletion. We've found that similar problems happened when redoing item creation, that should be fixed too.
  
Back to top
 
IP Logged
 
rusted
YaBB Newbies
*
Offline



Posts: 42
Joined: Nov 3rd, 2005
Re: Undo and groups
Reply #35 - Nov 9th, 2005 at 4:11pm
Print Post  
I have downloaded the latest beta from the link you provided.  I have set the IgnoreLayout property of the subordinate group items to True, which reems to have resolved the layout issue, BUT, the ZIndex problem is NOT fixed.

1)  I delete a group, do an Undo, and the small box (with image) has disappeared, and the table (used for caption) is only visible when the group is selected ... when the selection is elsewhere, the table disappears!!!

2)  There is also a bug in the layout managers.  I have created nodes with very specific anchor points around the edges, and set the flowchart SnapToAnchor property to OnCreateOrModify, yet when I perform a layout using the layoutmanager, some of the arrow connections are made to the centre of the nodes (which do not have an anchor).
I also got an exception thrown when doing an UNDO of a layoutmanager action.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Undo and groups
Reply #36 - Nov 9th, 2005 at 6:09pm
Print Post  
Ok we added a saveZOrder argument to StartComposite; if it's true, the whole Z order array is saved. Then if the composite command is undone, the whose Z order array is restored back.

Otherwise if that parameter is not used, the Z index of items is saved separately for each command but that gets messy and depends very much on the order of executing the contained commands.

https://mindfusion.org/_temp/FlowChart.NET.zip

We use this version of the project for testing

https://mindfusion.org/_temp/WorkflowTest.zip
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Undo and groups
Reply #37 - Nov 9th, 2005 at 6:58pm
Print Post  
Though as we tested this further it seems redoing the composite breaks the Z order too, so we'll have to save the Z order array in the 'before' and 'after' states and restore in also when redoing.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Undo and groups
Reply #38 - Nov 9th, 2005 at 7:24pm
Print Post  
This build of the control will restore the Z order array also when redoing composite commands, created with the saveZOrder parameter.

https://mindfusion.org/_temp/FlowChart.NET.zip
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Undo and groups
Reply #39 - Nov 10th, 2005 at 7:14am
Print Post  
Set the Anchoring property of layout classes to Reassign and the arrows won't connect to the box or side centers but to some anchor point. Regarding undo of layout actions, that's automatically recorded in its own composite command, you don't have to create one. We can't see any problems when undoing or redoing the layout.
  
Back to top
 
IP Logged
 
rusted
YaBB Newbies
*
Offline



Posts: 42
Joined: Nov 3rd, 2005
Re: Undo and groups
Reply #40 - Nov 11th, 2005 at 4:19pm
Print Post  
I am saving the flowchart to an xml fragment in an xml doc using the .SaveToString method.  This appears to succeed, but always seems to end off with a null terminator (i.e. "�"), so when I try and open the xml doc it fails as NUL or 0x0000 (represented as the character reference �) is illegal in XML.  Is there anything I can do to ensure the unicode representation of the flowchart does not end in a null terminator?  Is one of the flowchart properties being interpreted as null?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Undo and groups
Reply #41 - Nov 11th, 2005 at 4:45pm
Print Post  
Yes, that null terminator is appended unduly to the StringBuilder and turns up in the string. For now you can use String.TrimEnd to remove the null.
  
Back to top
 
IP Logged
 
rusted
YaBB Newbies
*
Offline



Posts: 42
Joined: Nov 3rd, 2005
Re: Undo and groups
Reply #42 - Nov 11th, 2005 at 6:00pm
Print Post  
String.TrimEnd doesn't seem to do the trick ... string appears ok in class until it gets XML Serialised, at which point the "�" characters appear.

Is there another trick I can use? (e.g. always just reduce length of string returned by flowchart.SaveToString by 1?)

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Undo and groups
Reply #43 - Nov 11th, 2005 at 6:53pm
Print Post  
The developer has already removed the Append(null) call anyway; these dlls are freshly built:

https://mindfusion.org/_temp/FlowChart.NET.zip
  
Back to top
 
IP Logged
 
rusted
YaBB Newbies
*
Offline



Posts: 42
Joined: Nov 3rd, 2005
Re: Undo and groups
Reply #44 - Nov 14th, 2005 at 12:07pm
Print Post  
Ok, this build has sorted out the null terminator.  Thanks.

I must make you aware, however, that I still get some odd "group" behaviour when cycling through Undo or Redo, typically after having done an automatic layout.  Somethimes after an Undo/ Redo, the tables end up disconnected from their original position in the group even tho I have the layout option .KeepGroupLayout = True set.  There doesn't seem to be a foolproof method to recreate this bug, but it is definitely there!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 4 5 6
Send TopicPrint