Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!22g2000hsm.googlegroups.com!not-for-mail
From:  "G.A.M." <x0Zero@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to create figures and dock them into my main GUI figure?
Date: Tue, 18 Sep 2007 16:54:36 -0000
Organization: http://groups.google.com
Lines: 39
Message-ID: <1190134476.436648.216560@22g2000hsm.googlegroups.com>
References: <favbc6$5uj$1@fred.mathworks.com>
NNTP-Posting-Host: 24.129.101.179
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1190134477 9460 127.0.0.1 (18 Sep 2007 16:54:37 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 18 Sep 2007 16:54:37 +0000 (UTC)
In-Reply-To: <fcou6h$r9q$1@fred.mathworks.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: 22g2000hsm.googlegroups.com; posting-host=24.129.101.179;
Xref: news.mathworks.com comp.soft-sys.matlab:429159



On Sep 18, 12:25 pm, "Adam " <not.my.em...@mathworks.com> wrote:
> <SNIP>
>
>
>
> > > use:
> > > set(<figurename>, 'WindowStyle', 'docked')
>
> > My understanding from reading help is that this command
> will only dock
> > a figure to the Matlab desktop. Is that correct? If I
> could pass it a
> > parent figure parameter, that might do what I need.
>
> > I want to create a main figure for my application and then
> dock my
> > other windows to MY figure. Thanks
>
> I don't have any experience using this.  However...
>
> fig1 = figure;
> set(fig1, 'WindowStyle', 'docked')
>
> fig2 = figure;
> set(fig2, 'WindowStyle', 'docked')
>
> creates one figure, then docks the second with the first.
> For me it remembers the last docked configuration, not sure
> how to change that.
>
> Use get(fig1) and get(fig2) to analyze parameters if no one
> else chimes in with details

I think I found what I need:
http://xtargets.com/cms/Tutorials/Matlab-Programming/Advanced-Layout-Management-With-Handle-Graphics.html

I just found it thanks to "per isakson". I haven't tried it yet, but
it looks like exactly what I was hoping to find.