|
If I understand your usage correctly, "DesktopLayout" is the renamed xml
file from a previous session on your office computer. You startup MATLAB in
your office, having most recently run it remotely from a laptop. On startup
the desktop restores the layout appropriate for the laptop. You then choose
DesktopLayout but it doesn't correctly restore the main frame's location.
Do I have this right?
I tried the equivalent steps here and didn't observe any problem. If you
send me a screen shot of your desktop after the failed restore plus the
DeskopLayoutMATLABLayout.xml file I can try to diagnose the problem.
Peter
"Pinpress" <nothing@nothing.edu> wrote in message
news:gg6er6$bd5$1@fred.mathworks.com...
> 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.
>
|