Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!p9g2000vbl.googlegroups.com!not-for-mail
From: Rune Allnor <allnor@tele.ntnu.no>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to suppress figure() to bring figure to foreground?
Date: Wed, 16 Sep 2009 09:44:50 -0700 (PDT)
Organization: http://groups.google.com
Lines: 61
Message-ID: <ba2a44a7-b633-4396-854f-ea34affd4460@p9g2000vbl.googlegroups.com>
References: <cd62214e-2635-4f6d-a367-eb8fbfaef57b@o36g2000vbl.googlegroups.com> 
	<h8qufp$40a$1@fred.mathworks.com> <8c9db9f2-45cd-46e2-9fd3-8f6ff4aaf027@p23g2000vbl.googlegroups.com>
NNTP-Posting-Host: 77.17.187.149
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1253119490 24215 127.0.0.1 (16 Sep 2009 16:44:50 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 16 Sep 2009 16:44:50 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: p9g2000vbl.googlegroups.com; posting-host=77.17.187.149; 
	posting-account=VAp5gAkAAAAmkCze5hvZtMeedpZWNthI
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; 
	Trident/4.0; .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; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:570851


On 16 Sep, 18:12, Joe Duchtel <duch...@gmail.com> wrote:
> 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.

Seems you have hit some OS-specific issues. I remember some
UNIX flavours where you could specify parameters like
PointerFocusPolicy (*), which specified if you had to click
on a window to activate it, or just bring the mouse cursor
on top of it. There was similar parameters like
BringToForegroundPolicy (*), to specifiy whether the activated
wondow shouls pop to the front or remain partially hidden
when activated.

The problem was/is that MSWindows didn't/don't have similar
parameters: If a window is activated and visible, it pops to
the foreground, and there is nothing one can do to prevent it.

Don't expect too much from an OS that can trace its roots
to the infamous Quick'n Dirty DOS...

Rune

(*) probably not correct names.