Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!news.glorb.com!postnews.google.com!i12g2000prf.googlegroups.com!not-for-mail
From: erikkouwenhoven@gmail.com
Newsgroups: comp.soft-sys.matlab
Subject: Re: Maximize button in GUI
Date: Sun, 16 Mar 2008 05:37:34 -0700 (PDT)
Organization: http://groups.google.com
Lines: 20
Message-ID: <e4d50535-60d1-4e3d-8ff8-ec0a6947a9a0@i12g2000prf.googlegroups.com>
References: <frecdg$qo7$1@fred.mathworks.com> <frh95j$1n3$1@fred.mathworks.com>
NNTP-Posting-Host: 83.84.187.54
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1205671055 20282 127.0.0.1 (16 Mar 2008 12:37:35 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 16 Mar 2008 12:37:35 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: i12g2000prf.googlegroups.com; posting-host=83.84.187.54; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 
Xref: news.mathworks.com comp.soft-sys.matlab:457474


On 15 mrt, 20:48, "Yair Altman" <altmany...@gmailDEL.comDEL> wrote:
> "Blueblood Kingroyale" <edproject....@gmail.com> wrote in
> message <frecdg$qo...@fred.mathworks.com>...
>
> > Any idea where I can find and edit the Callback for the
> > 'maximize' button in the title bar of a GUI ?
> > (Basically what I want to do is that the GUI appear in a
> > Maximized size as soon as it starts up.)
>
> There are a few submissions on the Mathworks File Exchange
> that do this. Search for 'maximized' and variants. The best
> ones use undocumented Java hooks, but work pretty well in
> practice.
>
> Yair altman

Or you could use the resizeFcn callback of the main figure window
(usually named figure1).

Erik Kouwenhoven