Thread Subject: Screen Size

Subject: Screen Size

From: Richard

Date: 21 Aug, 2007 15:38:37

Message: 1 of 3

Is there away to automatically find my screen size? I know
one can find the size and location of a plot by using "get
('position')" command and I was wondering if there was a
simular one for screen size.

Thanks
Ben H

Subject: Screen Size

From: Rick Rosson

Date: 21 Aug, 2007 16:01:18

Message: 2 of 3

Hi Ben,


Yes. The screen size is a property of the root object, which you can access
with the handle '0'. So, the statement

  scrsz = get(0,'ScreenSize');

will return a four-element vector in the variable 'scrsz':

  [left, bottom, width, height]


I hope that helps.

Thanks.

Rick



"Richard " <Ben.H.@Nothing.com> wrote in message
news:faf0tt$qt9$1@fred.mathworks.com...
> Is there away to automatically find my screen size? I know
> one can find the size and location of a plot by using "get
> ('position')" command and I was wondering if there was a
> simular one for screen size.
>
> Thanks
> Ben H

Subject: Screen Size

From: Richard

Date: 21 Aug, 2007 17:20:32

Message: 3 of 3

Rick

Exactly what I was hoping for!

Thanks!

Ben H.



"Rick Rosson" <rrosson@mathworks.com> wrote in message
<faf28g$mjs$1@fred.mathworks.com>...
> Hi Ben,
>
>
> Yes. The screen size is a property of the root object,
which you can access
> with the handle '0'. So, the statement
>
> scrsz = get(0,'ScreenSize');
>
> will return a four-element vector in the variable 'scrsz':
>
> [left, bottom, width, height]
>
>
> I hope that helps.
>
> Thanks.
>
> Rick
>
>
>
> "Richard " <Ben.H.@Nothing.com> wrote in message
> news:faf0tt$qt9$1@fred.mathworks.com...
> > Is there away to automatically find my screen size? I
know
> > one can find the size and location of a plot by
using "get
> > ('position')" command and I was wondering if there was a
> > simular one for screen size.
> >
> > Thanks
> > Ben H
>
>

Tags for this Thread

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.

rssFeed for this Thread

Contact us at files@mathworks.com