Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Showing a progress indicator (Read 1151 times)
jf2020
Junior Member
**
Offline


I love FlowChart!

Posts: 63
Joined: Feb 23rd, 2006
Showing a progress indicator
Jan 18th, 2010 at 1:58pm
Print Post  
Good Day,

I'm trying to display a progress indicator while loading/updating the diagram but I cannot get it to work.  My guess is that FlowChart is working on the Gui thread and that I connot interact with it at the same time, but I'm likely missing something. I tried with various BackgroundWorker combinations but that didn't help.

Also is there something equivqlent to a BeginUpdate()  / EndUpdate() to disable the refresh of the diagram while it is being updated?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Showing a progress indicator
Reply #1 - Jan 18th, 2010 at 3:31pm
Print Post  
Good day,

Processing is done in the current thread, which happens to be the UI thread if you call LoadFromFile from a menu-item event handler. You might try calling LoadFromString from a worker thread instead, but first disconnect the diagram from the view by assigning a new Diagram instance to the view' Diagram property, and assign back the loaded diagram once the Load method completes.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint