Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: set GUI Position
Date: Mon, 19 Nov 2007 10:41:24 +0000 (UTC)
Organization: DW-TV
Lines: 30
Message-ID: <fhrp8k$7eo$1@fred.mathworks.com>
References: <fhq62a$4tb$1@fred.mathworks.com> <fhqbau$bej$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1195468884 7640 172.30.248.37 (19 Nov 2007 10:41:24 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 19 Nov 2007 10:41:24 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1095707
Xref: news.mathworks.com comp.soft-sys.matlab:438320



"Bruno Luong" <brunoluong@yahoo.com> wrote in message
<fhqbau$bej$1@fred.mathworks.com>...
> "Lars Warmbold" <mustermann.klaus.TO.REMOVE@gmx.de> wrote in
> message <fhq62a$4tb$1@fred.mathworks.com>...
> 
> It seems that after calling OpeningFcn,
> gui_mainfcn calls
> openfig calls 
> movegui(fig, 'onscreen'), which add a margin of 30 pixels.
> 
> If you are willing to mess around with MATLAB source, you
> could edit the file movegui.m (on $MATLAB/toolbox/uitools/
> ), and change the variable margin to 0 (or -1).
> 
> Bruno

Thank You Bruno! That's what I found out too. I thought
there could be a softer way  like

set(fig, 'Onscreen', 'Off');

just to be included in OpeningFcn...

Hmm. Finally I put this position setting into the OutputFcn,
which is called after the Gui is placed automatcally. Thanks
anyway!!!

LARS