Path: news.mathworks.com!not-for-mail
From: "Sven" <sven.holcombe@gmail.deleteme.com>
Newsgroups: comp.soft-sys.matlab
Subject: waitbar without focus?
Date: Mon, 27 Apr 2009 17:58:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <gt4rna$9g3$1@fred.mathworks.com>
Reply-To: "Sven" <sven.holcombe@gmail.deleteme.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1240855082 9731 172.30.248.37 (27 Apr 2009 17:58:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 27 Apr 2009 17:58:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1326470
Xref: news.mathworks.com comp.soft-sys.matlab:535744


Hi all,

I have a function that, depending on the arguments passed to it, can take a long time (~60sec) or a short time (~1sec).
I have wrapped a waitbar() call around the function's loop so I can see the progress.

The thing is, I am now calling this function inside my main program loop, and it is a little annoying to have my window focus "stolen" by each iteration that calls waitbar().

Is there an argument I can pass to waitbar to *not* have it make the progress bar the currently focused window?

Thanks,
Sven.