Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Arrange progress and Cancelling the Arrange method (Read 2328 times)
tom_w
Junior Member
**
Offline


Swimlanes made our dreams
come true :-)

Posts: 79
Joined: Oct 20th, 2008
Arrange progress and Cancelling the Arrange method
Oct 20th, 2008 at 5:41pm
Print Post  
Hi

Our solution is likely to use several thousand nodes.  My suspicion is that this may take a little while to refresh, so I'd like to show the user the progress and also allow them to cancel the Arrange.  Are either of these tasks possible? 

I'm using a FlowLayout.

Thanks

Tom

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrange progress and Cancelling the Arrange me
Reply #1 - Oct 21st, 2008 at 2:15pm
Print Post  
Hi,

FlowLayout can run incrementally by adding only one node at a time, so you might try to use this to implement progress and cancel.

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


Swimlanes made our dreams
come true :-)

Posts: 79
Joined: Oct 20th, 2008
Re: Arrange progress and Cancelling the Arrange me
Reply #2 - Oct 21st, 2008 at 2:26pm
Print Post  
Thanks Stoyan, two questions on that:

1.  Will it be a lot slower?

2.  How would you actually do that? 

Thanks for all your answers so far, much appreciated  Smiley
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrange progress and Cancelling the Arrange me
Reply #3 - Oct 21st, 2008 at 2:57pm
Print Post  
You can do this by calling FlowLayout.AddNode a lot of times, and it will be a lot slower Undecided I suppose we could add some event that the layout class would raise to let you update a progressbar or cancel it, but can't give you a definitive date when it will be available.

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


Swimlanes made our dreams
come true :-)

Posts: 79
Joined: Oct 20th, 2008
Re: Arrange progress and Cancelling the Arrange me
Reply #4 - Oct 21st, 2008 at 4:02pm
Print Post  
Thanks Stoyan.
  
Back to top
 
IP Logged
 
jholliday
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Jun 9th, 2010
Re: Arrange progress and Cancelling the Arrange me
Reply #5 - Nov 23rd, 2010 at 2:37am
Print Post  
Has there been any update on the best way to show progress to the user while drawing or laying out a large diagram?  It takes on the order of 30 seconds to update my diagram on a very fast machine.  Typically longer for most users.  I need a reliable way to provide feedback during such long operations.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrange progress and Cancelling the Arrange me
Reply #6 - Nov 23rd, 2010 at 7:21am
Print Post  
You can assign a LayoutProgress callback to the layout's Progress property and provide feedback from there.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint