Thread Subject: Maximize Windows Programically (Vista x64)

Subject: Maximize Windows Programically (Vista x64)

From: Kian

Date: 8 Sep, 2009 08:30:05

Message: 1 of 3

I'd like to be able to maximize a windows with code. I found a few scripts on file exchange, but non works with Vista x64.

Does anyone know how I can achieve this? I'm running MATLAB R2007b.

The reason why I need this (maybe there a better way) is that I'm constructing a video (animation) of about 10 figures. The figures have subplots on them and when I use getframe the subplots end up being really small. I'd like to maximize it and then use getfigure.

Thanks!

Subject: Maximize Windows Programically (Vista x64)

From: Brendan

Date: 8 Sep, 2009 12:50:25

Message: 2 of 3

On Sep 8, 5:30 am, "Kian " <kian.to...@utah.edu> wrote:
> I'd like to be able to maximize a windows with code. I found a few scripts on file exchange, but non works with Vista x64.
>
> Does anyone know how I can achieve this? I'm running MATLAB R2007b.
>
> The reason why I need this (maybe there a better way) is that I'm constructing a video (animation) of about 10 figures. The figures have subplots on them and when I use getframe the subplots end up being really small. I'd like to maximize it and then use getfigure.
>
> Thanks!

scrsz = get(0,'ScreenSize');
set(gcf,'Position',[scrsz(1) scrsz(2)+scrsz(4)/20 scrsz(3) scrsz(4)
*17/20]);

Subject: Maximize Windows Programically (Vista x64)

From: Kian

Date: 9 Sep, 2009 17:11:03

Message: 3 of 3

Perfect! Thanks.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
maximize frame ... Kian 8 Sep, 2009 04:34:03
rssFeed for this Thread

Contact us at files@mathworks.com