Path: news.mathworks.com!not-for-mail
From: "Pinpress" <nothing@nothing.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: desktop layout problem
Date: Fri, 21 Nov 2008 13:59:02 +0000 (UTC)
Organization: Dartmouth College
Lines: 70
Message-ID: <gg6er6$bd5$1@fred.mathworks.com>
References: <gg3s3m$2il$1@fred.mathworks.com> <gg45lq$5oc$1@fred.mathworks.com>
Reply-To: "Pinpress" <nothing@nothing.edu>
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 1227275942 11685 172.30.248.37 (21 Nov 2008 13:59:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 21 Nov 2008 13:59:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 29342
Xref: news.mathworks.com comp.soft-sys.matlab:502289


Hi Peter,

It still seems not entirely working -- I followed the second method, and when I tried to use DesktopLayout in my office after Matlab was used remotely using LaptopLayout, I can see that the editor was positioned and sized correctly. The main window was sized correctly, but not positioned all the way to the right. It was somehow still in the middle. I wonder if there is any further fix to this. By the way, I am using R2008b. thanks.

Pinpress

"Peter Muellers" <Peter.Muellers@mathworks.com> wrote in message <gg45lq$5oc$1@fred.mathworks.com>...
> This problem arises because saved layouts don't include the size and 
> location of the main desktop frame.  They include the arrangement of 
> components within the frame and the size and location of undocked frames. 
> In the future we might consider providing an option in the save dialog to 
> include the main frame size and location.  In the meantime there are a 
> couple of ways you can achieve the behavior you desire.
> 
> 1. Dock the Editor, drag it to the left side of the main desktop frame and 
> size it to occupy half of the frame.  Save this layout.  When you restore 
> this layout the editor will occupy half of the desktop frame and the other 
> components will appear within the other half.
> 
> 2.  This approach is a bit more involved but avoids the need to dock the 
> editor.  It takes advantage of the fact that the session layout file that is 
> saved automatically on exit does include the main desktop frame size and 
> location.  Arrange the undocked Editor and main desktop frame the way you 
> want them.  Issue the MATLAB prefdir command and take note of the 
> preferences directory location.  Exit MATLAB.  In the preferences directory 
> make a copy of the file "MATLABDesktop.xml".  Rename the copy to 
> fullScreenMATLABLayout.xml or fullLaptopScreenMATLABLayout.xml as 
> appropriate.  The next time you start MATLAB corresponding entries (named 
> fullScreen or fullLaptopScreen) will appear under the Desktop->Desktop 
> Layout menu.  Selecting one of these entries will restore the main desktop 
> frame's size and location as well as the Editor's.
> 
> Peter Muellers
> The MathWorks, Inc.
> 
> 
> "Pinpress" <nothing@nothing.edu> wrote in message 
> news:gg3s3m$2il$1@fred.mathworks.com...
> > Hi all,
> >
> > The short story: Matlab desktop layout only saves the position and size of 
> > the Editor, but not the command window, workspace, command history, etc.
> >
> > The long story: I am sure some of you also have this similar problem when 
> > working with Matlab sometimes at
> > the computer where Matlab is installed while sometimes remotely by 
> > connecting to the computer remotely using remote desktop (on XP
> > or Vista, at least). I always set my preferred Matlab desktop layout to be 
> > that the editor occupies the left
> > half of the screen, while the command window, command history, and 
> > workspace etc. occupy the right half of the screen.
> > Therefore, my Matlab would occupy the entire screen when I am working at 
> > the desktop computer where it is installed.
> > I save this layout to something like: "fullScreen". The problem is that if 
> > I work remotely (e.g., at home) using
> > my laptop to connect to the computer remotely, I do not get the same size 
> > of the screen. If I
> > want to have s similar layout (i.e., editor to occupy the left side while 
> > the rest on the right), I
> > could adjust the windows until I am happy and then, save the layout as 
> > "fullLaptopScreen". The problem is that, when
> > I am either at the desktop or at my laptop and when I choose the 
> > appropriate layout, only the editor
> > is configured the correct position and size, but not the command window 
> > etc. This is really annoying as I need
> > to switch between computer rather frequently.
> >
> > Anyone has any suggestions/recommendations how to properly use layout 
> > manager to make my life easier?  thanks.