Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to suppress figure() to bring figure to foreground?
Date: Wed, 16 Sep 2009 13:26:41 -0400
Organization: The MathWorks, Inc.
Lines: 26
Message-ID: <h8r743$98v$1@fred.mathworks.com>
References: <cd62214e-2635-4f6d-a367-eb8fbfaef57b@o36g2000vbl.googlegroups.com> <h8qufp$40a$1@fred.mathworks.com> <8c9db9f2-45cd-46e2-9fd3-8f6ff4aaf027@p23g2000vbl.googlegroups.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1253121987 9503 172.31.44.65 (16 Sep 2009 17:26:27 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 16 Sep 2009 17:26:27 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:570875



"Joe Duchtel" <duchtel@gmail.com> wrote in message 
news:8c9db9f2-45cd-46e2-9fd3-8f6ff4aaf027@p23g2000vbl.googlegroups.com...

*snip*

> 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.

Yes, this is expected and documented behavior, as described in the fourth 
paragraph of the Description section of the FIGURE reference page:

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure.html

The "Making a Figure Current" section of that documentation describes how to 
make a figure current without changing its stacking order.

-- 
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ