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: Arnaud Nicolet <anic297@mac.com>
Date: Wed, 26 Nov 2008 23:02:03 +0100
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: <8C0E3023-958D-4B92-B6B2-004ECD2B8DD0@tolisgroup.com>
References: <BLU122-DAV5BF48FA8226A86ACF1840F90B0@phx.gbl> <DE7EB77F-6E38-4E1B-BEF7-F68FE4D4EB24@declareSub.com> <8C0E3023-958D-4B92-B6B2-004ECD2B8DD0@tolisgroup.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Le 26 nov. 08 à 00:09 (matin), Tim Jones a écrit:

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.

Or in a moveable modal dialog (this way, the entire application is locked. Also, I find more ugly a sheet window with only a progress bar (and an optional cancel button) than a modal dialog with only a progress bar)).
_______________________________________________
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>