Path: news.mathworks.com!not-for-mail
From: "Peter Muellers" <Peter.Muellers@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: desktop layout problem
Date: Thu, 20 Nov 2008 12:10:15 -0500
Organization: The MathWorks, Inc.
Lines: 63
Message-ID: <gg45lq$5oc$1@fred.mathworks.com>
References: <gg3s3m$2il$1@fred.mathworks.com>
Reply-To: "Peter Muellers" <Peter.Muellers@mathworks.com>
NNTP-Posting-Host: muellersp.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain;
	format=flowed;
	charset="iso-8859-1";
	reply-type=original
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1227201018 5900 144.212.107.224 (20 Nov 2008 17:10:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 20 Nov 2008 17:10:18 +0000 (UTC)
In-Reply-To: <gg3s3m$2il$1@fred.mathworks.com>
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049
Xref: news.mathworks.com comp.soft-sys.matlab:502083


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.