Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!p23g2000vbl.googlegroups.com!not-for-mail
From: Joe Duchtel <duchtel@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to suppress figure() to bring figure to foreground?
Date: Wed, 16 Sep 2009 09:12:18 -0700 (PDT)
Organization: http://groups.google.com
Lines: 36
Message-ID: <8c9db9f2-45cd-46e2-9fd3-8f6ff4aaf027@p23g2000vbl.googlegroups.com>
References: <cd62214e-2635-4f6d-a367-eb8fbfaef57b@o36g2000vbl.googlegroups.com> 
	<h8qufp$40a$1@fred.mathworks.com>
NNTP-Posting-Host: 192.88.212.32
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1253117539 22066 127.0.0.1 (16 Sep 2009 16:12:19 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 16 Sep 2009 16:12:19 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: p23g2000vbl.googlegroups.com; posting-host=192.88.212.32; 
	posting-account=_ogVpwoAAAATKqqGum5BwqKuBv_Be3E_
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
	CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; 
	.NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:570844


On Sep 16, 10:59 am, "Donn Shull" <donn.shull.no_s...@aetoolbox.com>
wrote:
> Joe Duchtel <duch...@gmail.com> wrote in message <cd62214e-2635-4f6d-a367-eb8fbfaef...@o36g2000vbl.googlegroups.com>...
> > Hello -
>
> > I realize that I need to use the figure() command to create a figure
> > but is there any way that it will not automatically bring each figure
> > to the forground if it is called for a figure that is already open?
> > This happens since I run an m-file several times without closing each
> > figure prior to a new run.
>
> > Is there a way to get a list of all open figures?  I tried get(0) but
> > the 'CurrentFigure' will only tell the currently active figure.
>
> > Thanks,
> > Joe
>
> Hello Joe,
>
> You can use get(0, 'Children') to return all the children of the desktop.
>
> Hope this helps,
>
> Donn

Hello -

Thanks for the information.  I determined the handles of my figures
using the get(0, 'Children') but when I do a figure(hFigure) to make a
certain figure my active figure, it is still moved to the foreground.
The 'Visible' will just hide the figure and turning that back 'on'
also moves it to the foreground.

Thanks,
Joe