New topic: 

Progress Bar Basic Questions

<http://forums.realsoftware.com/viewtopic.php?t=29260>

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       rbasic20091005153           Post subject: Progress Bar Basic 
QuestionsPosted: Tue Jul 28, 2009 12:27 am                               
Joined: Sat Apr 04, 2009 5:10 pm
Posts: 166              Hola,

I'm pretty sure the same questions have been raised.  And I'm sorry for asking 
them again.  If I search this discussion board for 'Progress Bar,' I get 61 
pages of hits.  And I don't know how I can narrow them down to what I want to 
know.

I have never used the Progress Bar Class successfully.  Whenever I used it, the 
bar never progressed smoothly.  It usually hits the other side very quickly at 
the end of the requested process.  Using the progress bar seems simple, though, 
if you have two statistics (statistics as to not information but indicators or 
references) like the total number of rows and the current row being processed.  
If I look up the Language Reference and read under QTVideoTrack Class, there 
are two statistics: 96 as the total number of frames and i as the current frame.

And I've picked up the following small code from RB's progress bar example 
project.

Code:If ProgressBar1.Value=ProgressBar1.Maximum Then // If we've reached the 
end...
  Me.Mode=0 // Turn the timer off
  Self.Close
  Exit Sub
End if

ProgressBar1.Value=ProgressBar1.Value+1 // Add one to the value for progress


In retrospect, it appears to me that using the progress bar is a piece of cake.

But what if you don't have these statistics (value and maximum)?  For example, 
I'm currently working on command shell programs like hdiutil and ditto.  Let's 
say that I want to compress a DMG image with hdiutil like

Code:hdiutil convert -format UDCO /Volumes/SD\ MEMORY/musica03.dmg -o 
/Volumes/SD\ MEMORY/JimDisk

And hdiutil won't give you 'value' or 'maximum' through the shell.  But some 
fancier applications than mine manage to show the progress while an archive is 
being decompressed or a disc image is being created.  How do they manage to use 
the progress bar so successfully?

I appreciate your any advice that I can get.

Tom     
_________________
Mac OS X 10.5.6/REALBasic 2008 R4
I say 'no' to MBS plug-ins.  I boycott them.  
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]     
-- 
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]

Reply via email to