realbasic-nug
[Top] [All Lists]

Re: CheckBox Background and ProgressBar fuctionality

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: CheckBox Background and ProgressBar fuctionality
From: Tim Jones <tjmac@tolisgroup.com>
Date: Tue, 25 Nov 2008 16:09:40 -0700
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <DE7EB77F-6E38-4E1B-BEF7-F68FE4D4EB24@declareSub.com>
References: <BLU122-DAV5BF48FA8226A86ACF1840F90B0@phx.gbl> <DE7EB77F-6E38-4E1B-BEF7-F68FE4D4EB24@declareSub.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
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>


<Prev in Thread] Current Thread [Next in Thread>