SteveMyres Posted December 7, 2012 Share Posted December 7, 2012 I'm starting a process from a sequence and popping up a window containing a progress bar that displays a percentage of the time I've measured that the task requires. IOW, I don't get any feedback during the process, so the expression for the progress bar is systime() - begintime with a min of zero and a max of the measured task duration. It works in general terms, but the bar doesn't move very smoothly. It remains completely blank for a couple seconds, then appears about 60% full, then slides reasonably smoothly over to 100%, and then the popup is closed (as expected). I have the screen for the popup configured with a fast refresh (0.1 seconds), so perhaps it has sometime to do with thread priority, maybe? Are all UI elements done at priority 2, or can they inherit priority from the sequence that launched them? Is there anything I can adjust to make it smoother? Link to comment Share on other sites More sharing options...
AzeoTech Posted December 7, 2012 Share Posted December 7, 2012 Depends. If the sequence is actually using all the processor power for those few seconds, you'll need to have it run a little slower and release the processor by doing, say, delay(0.01) inside your loop. This will allow the UI to refresh. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.