|
"Vihang Patil" <vihang_patil@yahoo.com> wrote in message
<g4nbec$oi7$1@fred.mathworks.com>...
> "Thorarin Bjarnason" <thor4ooo@gmail.com> wrote in message
> <g4lj6e$b6a$1@fred.mathworks.com>...
> > Hello:
> >
> > I have a gui created using guide. I would like this gui
> to
> > launch in the upper left corner of the screen.
> >
> > I tried using 'movegui', but I can only get it to work
> after
> > the gui has become viewable <ie it does not work within
> the
> > GUI_OpeningFunction(...) area>, causing it to jump to the
> > new location.
> >
> > Suggestions?
> Lauch your main gui (say main_gui)through other m
> function say calling_fcn and do the following
> example:
>
> function calling_fcn
> h = main_gui;
> movegui(h,'northwest');
>
>
> HTH
> Vihang
>
>
>
This is a very commmon question. See last post here for
example:
http://www.mathworks.com/matlabcentral/newsreader/view_thread/161654#408756
If GUIDE finds your gui is too close to the edge, it will
reposition it UNLESS you have defined a layout function. The
layout function just needs to open the fig file, then you
can reposition the figure anywhere you want. (Either in the
openingfcn, the layoutfcn, or saved in the figure itself.)
|