Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: set GUI Position
Date: Sun, 18 Nov 2007 20:07:38 +0000 (UTC)
Organization: DW-TV
Lines: 21
Message-ID: <fhq62a$4tb$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1195416458 5035 172.30.248.38 (18 Nov 2007 20:07:38 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 18 Nov 2007 20:07:38 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1095707
Xref: news.mathworks.com comp.soft-sys.matlab:438241



I inserted the following code to my GuiOpeningFcn in order
to place the GuiFigure on the very left side of the screen
at start:

set(gcf, 'Units'   , 'Normalized');
set(gcf, 'Position', [0, 0.3, 1, 0.5]);

But the Gui-MainFcn does something I don't understand!!!
There's always some space on the left hand side of the Gui
left. I figured out that Matlab forces 'undocked' figures to
appear on the screen at start: means that

set(gcf, 'Position', [-2, 0.3, 1, 0.5]);

leads to the same position as the above given: On screen but
not as far left as possible.

How can I supress the 'automatic placing service' done by
the GuiMainFcn?

Thanks in advance!!! LARS