Yes, what I posted was suggestions, not finished code. If it works ok the way to clean it up is to observe that msg.graphicOnly is always FALSE, so you can remove the "IF msg.graphicOnly THEN" clauses, and even remove the graphicOnly fields entirely.manumart1 wrote:The module LibPlotters (subsystem Lib from http://www.zinnamturm.eu/downloadsIN.htm#Lib) does not have Plotter.UpdateNow.
I modified module LibPlotters as you showed, but got an error:
So RestoreGraphic is missing. I changed it to Restore and compiled ok.
It now works ok, i.e. each line is drawn separately and immediately, instead of all at the same time when the program finished.
I often observe this problem. I think it is a general BlackBox problem with any long running Command, and not related to LibPlotters. I don't find it a time issue (6 seconds), but is caused when you do anything on the computer; move the mouse, hit the keyboard, top another programme ....But... if the delay is too long, after 6 seconds the cursor becomes busy and the screen freezes
When the Command finishes the screen is then redrawn with the correct final result; it is only the intermediate results that can't be seen.
I also find that Chris's magic ProcessMessages can be very helpful - it can also be dangerous.
Regards