Reduce amount of progress bar windows flashing during execution of Flowcharts
Currently when flowcharts are executing other flowcharts which are executing other flowcharts etc. etc. etc. it causes the progress bar ("AdoScript" PERCWIN_CREATE
, "AdoScript" PERCWIN_DESTROY
etc.) to flash a lot. Specifically it gets created and destroyed a lot, which also means that it has to be re-positioned every time, which is annoying when showing for example the Robotic Arm example ("1 - Supermarket case - package oriented 2.0" model)
One solution would be to create a global percentage window for flowchart execution that is handled by the outer most flowchart. "Sub-"flowcharts executed could then ignore creating (and destroying) the progress bar. Each flowchart execution "knows" how deep it is, because the level / layer is provided for the debug information and is also printed with it (outer most starting at 1 and increasing from there). The global percentage window could also track "how many elements" have been processed (absolute number provided via text, the bar itself would fill from 1 to 100 and then loop back to 1).