April 24, 2024, 06:32:41 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Mouse Clicks and Progress Bar

Started by Bruce Peaslee, July 23, 2012, 10:43:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bruce Peaslee

I am downloading records from the internet and it takes about five seconds.  :P

To give the users some confidence that the system is doing something (and to give them something to look at), I created a Progress Bar in its own window. It moves after each read. It works well, except if the user clicks on it (I did by accident). Then the bar freezes, the hourglass cursor appears, and I get unpredictable results when the reading is done and the window is hidden.

Bruce Peaslee
"Born too loose."
iTired (There's a nap for that.)
Well, I headed for Las Vegas
Only made it out to Needles

LarryMc

put a WAIT 1 statement in your reading loop and see if that helps.

LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Bruce Peaslee

That worked. I put the Wait command after the ProgressBar code:

For i = 1 to 133
   ...
   ProgressStepIt dlgProgress, Bar_Progress
   Wait (1)
Next i
   

Thanks, as always.
Bruce Peaslee
"Born too loose."
iTired (There's a nap for that.)
Well, I headed for Las Vegas
Only made it out to Needles