(C) Simulated progress bar

From: Paul Fedorenko (pfedorenko_at_look.ca)
Date: 11/14/04

  • Next message: Fahst Dek: "Re: (C) Simulated progress bar"
    Date: Sat, 13 Nov 2004 22:45:32 -0500
    
    

    My friend, the psychologist, who asked me to put together a little program
    for him has asked me if I could get the program to pause for a second
    between turns and to display a progress indicator to make it look like the
    program's running some calculations in the background.

    I'm thinking the progress bar would be fairly straight-forward... Just a
    for loop, set up to display a bunch of hashmarks or ASCII block characters
    one at a time... How would I get it to take a second or two to run through
    the loop? That sounds like an awfully long time.


  • Next message: Fahst Dek: "Re: (C) Simulated progress bar"

    Relevant Pages

    • Re: loop crashing standalone exe, but runs ok via matlab
      ... loop where x is incremented forever and displayed on the ... so how do I set up an infinite loop with a slight pause? ... display it for as long as the program is running. ... your code (else you won't get 100% CPU running the above). ...
      (comp.soft-sys.matlab)
    • Re: Interpreting the colon operator
      ... I tried this by using the print statement inside the loop. ... What follows then would be a display of ... is apparently affected by the fact that matlab is aware that 'Av' ... three-dimensional matrix even though the first index is restricted ...
      (comp.soft-sys.matlab)
    • Re: Text window not displaying inside loop
      ... // Idle until the screen redraws itself, ... MSG msg; ... functionality to loop every X-seconds then checking the figures again. ... trying to display them fresh on each loop to a text box. ...
      (microsoft.public.vc.mfc)
    • Re: Text window not displaying inside loop
      ... // Release main thread for background processing ... GiveTime(); ... functionality to loop every X-seconds then checking the figures again. ... trying to display them fresh on each loop to a text box. ...
      (microsoft.public.vc.mfc)
    • Re: Sorry, but need more help
      ... >> I tried the code below in a loop calling it. ... > most often refers to a tcl program running in the tcl web browser ... window with that data and have it stay on top and display the changes as the ... > load in the showMessage proc definition with a timeout of 10000 ...
      (comp.lang.tcl)

    Loading