Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Batching object creation? (Read 3663 times)
xx396
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Aug 18th, 2009
Batching object creation?
Aug 18th, 2009 at 10:28am
Print Post  
Hi, how do I batch the creation of objects? At the moment I am just using flowchart CreateBox, CreateArrow etc and then changing a bunch of properties, but every single one triggers a redraw so the whole thing flickers for ages before it completes. You get to see the default boxes before they change to the correct type and everything. I just want to turn off the redrawing until the initialization is complete
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Batching object creation?
Reply #1 - Aug 18th, 2009 at 12:16pm
Print Post  
Hi,

There isn't batch mode available. With what programming language / environment are you seeing this flickering? The control just flags the region of changed boxes as invalid when you set properties, and it should be repainted only when your function returns and the application processes the next WM_PAINT message.

Stoyan
  
Back to top
 
IP Logged
 
xx396
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Aug 18th, 2009
Re: Batching object creation?
Reply #2 - Sep 3rd, 2009 at 11:30am
Print Post  
Sorry for the late reply. I am using Smalltalk.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Batching object creation?
Reply #3 - Sep 3rd, 2009 at 3:08pm
Print Post  
I suppose Smalltalk runs the Windows message pump after each line of code is executed, so you are seeing the changes in "real time". We can add some methods to suppress and resume repainting of the control at some time next week.

Stoyan
  
Back to top
 
IP Logged
 
xx396
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Aug 18th, 2009
Re: Batching object creation?
Reply #4 - Sep 4th, 2009 at 11:05am
Print Post  
Both versions of Smalltalk I use must be running the message pump when you are single stepping code (or just executing lines from a workspace). In these cases, real time updates are ideal. Upon further investigation, when it comes to running a full program, one version does operate as you'd expect with no flickering. In the other that I'm having to use for this project, I have to effectively turn off the message pump for the purposes of the flowchart setup code and then it works fine. Its possible some other dynamic languages might be affected in the same way. Many Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint