On Nov 25, 2008, at 4:01 PM, Charles Yeomans wrote:
2) I have a lengthy procedure running and I am trying to use a
progress bar (rb2008r1,WinXP). What happens is that the program
runs but the user cant see the progress bar been updated because
the window with the bar does not draw it self. The program is
busy with the procedure and the window is at an "Not Responding"
state. After that I can see the bar full and the procedure to end
Do I have to put it in a thread? But I don't want the user to do
other things. He has to wait to finish. I have tried it with a
timer but the same thing happens.
You should put the procedure in a thread and somehow prevent the
user from proceeding while the procedure is running.
I accomplish this by placing my progress indicators onto a sheet
window. I then use "ShowWithin" to display it, start the thread
(which updates the progressbar), and then Close that sheet window
when the thread is done.
That performs 2 functions - it keeps unnecessary clutter off of the
main interface (the progressbar) and prevents the user from doing
anything until I close the sheet window when the thread completes.
HTH,
Tim
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|