New topic: ProgressBar Control beside Shell running ?
<http://forums.realsoftware.com/viewtopic.php?t=34344> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message mitch_stgt Post subject: ProgressBar Control beside Shell running ?Posted: Mon Jun 21, 2010 12:35 am Joined: Thu Oct 13, 2005 1:05 am Posts: 68 I have the problem to get an progressBar running beside an shell (syncron mode = RB waits for shell finished). My main App Window opens an Resultwindow starts the shell and shows results in the result window. The progessbar never starts right: IT starts wen the shell is finished ! i have an timer(multi mode) which is enabled/started BEFORE the shell runs in the main Window (tried also in the result window). In the timer code i update the progressbar (up....). Why does RB NOT do any timer code until the shell finishes (RB waits for shell finish) ? Shouldnt RB not run/go into the timer code beside it waits to finish the shell ? I found some Doevent in the Manual but at least RB Studio 2010 2.1 doesnt know that code (anymore). If i miss something how can i implement such an progressbar in this case. In the past i has excat the same problem to use an spinning wheel (i dont remember the rb control name) - starts spinning to late, not beside the waiting for shell is finished. THANKS Top mitch_stgt Post subject: Re: ProgressBar Control beside Shell running ?Posted: Mon Jun 21, 2010 12:44 am Joined: Thu Oct 13, 2005 1:05 am Posts: 68 Added: What happens: timer is multimode, 2 sec (with progressbar update code inside) is enabled direct before the shell is called. shell runs + RB waits to finish for getting shell results (beside that 30 sec i want to update the progressbar each 2 sec) Result window is shown (Text shown running ....) within progressbar is shown but NOT changing After shell finished + results shown also the progressbar starts to update by the timer ?! Useless because to late Top timhare Post subject: Re: ProgressBar Control beside Shell running ?Posted: Mon Jun 21, 2010 3:07 am Joined: Fri Jan 06, 2006 3:21 pm Posts: 7920 Location: Portland, OR USA A shell in Synchronous mode means "wait until I'm done". So it's doing exactly what you've told it to do. Run the shell in Asynch mode and your timer will fire as expected. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
