IonicWind Software

IWBasic => GUI Central => Topic started by: Bruce Peaslee on July 23, 2012, 10:43:46 AM

Title: Mouse Clicks and Progress Bar
Post by: Bruce Peaslee on July 23, 2012, 10:43:46 AM
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.

Title: Re: Mouse Clicks and Progress Bar
Post by: LarryMc on July 23, 2012, 11:05:26 AM
put a WAIT 1 statement in your reading loop and see if that helps.

Title: Re: Mouse Clicks and Progress Bar
Post by: Bruce Peaslee on July 23, 2012, 02:00:43 PM
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.