Window size/properties

R

Roger Mills

Is there any way in W7 of finding the size (in pixels) of a given window?

I want to create a 1024 x 768 window (on a much larger screen) so that I
can see what a particular application will look like when run on a
laptop with a 1024 x 768 screen.

I can find lots of info about maximising and minimising, or making a
window occupy the right or left half of the screen, but not about
finding the actual size of a window.

I have a work-around in that I can crop a photograph to 1024x768 (in 1:1
zoom) in The Gimp, and then lay my window over it - but that's a bit
messy. there's got to be a better way!

Any clues, anybody?
--
Cheers,
Roger
____________
Please reply to Newsgroup. Whilst email address is valid, it is seldom
checked.
 
C

Char Jackson

Is there any way in W7 of finding the size (in pixels) of a given window?

I want to create a 1024 x 768 window (on a much larger screen) so that I
can see what a particular application will look like when run on a
laptop with a 1024 x 768 screen.

I can find lots of info about maximising and minimising, or making a
window occupy the right or left half of the screen, but not about
finding the actual size of a window.

I have a work-around in that I can crop a photograph to 1024x768 (in 1:1
zoom) in The Gimp, and then lay my window over it - but that's a bit
messy. there's got to be a better way!

Any clues, anybody?
In which programming language are you doing your development?
 
C

charlie

Is there any way in W7 of finding the size (in pixels) of a given window?

I want to create a 1024 x 768 window (on a much larger screen) so that I
can see what a particular application will look like when run on a
laptop with a 1024 x 768 screen.

I can find lots of info about maximising and minimising, or making a
window occupy the right or left half of the screen, but not about
finding the actual size of a window.

I have a work-around in that I can crop a photograph to 1024x768 (in 1:1
zoom) in The Gimp, and then lay my window over it - but that's a bit
messy. there's got to be a better way!

Any clues, anybody?
If memory serves, Applications written with such things as visual studio
can set the window size. Visual Basic in earlier versions was limited in
the ability to change window sizes. There are undoubtedly windows ops
system functions that deal with windows and documentation might be found
in such places as MSDN. I don't know if windows scripting might expose
the functions.
 
D

Dave \Crash\ Dummy

Roger said:
Is there any way in W7 of finding the size (in pixels) of a given
window?

I want to create a 1024 x 768 window (on a much larger screen) so
that I can see what a particular application will look like when run
on a laptop with a 1024 x 768 screen.

I can find lots of info about maximising and minimising, or making a
window occupy the right or left half of the screen, but not about
finding the actual size of a window.

I have a work-around in that I can crop a photograph to 1024x768 (in
1:1 zoom) in The Gimp, and then lay my window over it - but that's a
bit messy. there's got to be a better way!

Any clues, anybody?
It is easy enough to do with VBScript or JavaScript. The example below
will create a window of any size you like and center it in the screen.

//=================== jssizer.hta =======================
<HTA:APPLICATION>
<html>
<body>
</body>
<script type="text/javascript">
w=1024;
h=768;
//resize to w, h
window.resizeTo(w,h);
//center in screen
window.moveTo((screen.availWidth-w)/2,(screen.availHeight-h)/2);
</script>
</html>
//==================================================

You can rename it to jssizer.htm to have it open a browser window of the
desired size, but you will have to defeat the browser scripting security.
 
R

Roger Mills

In which programming language are you doing your development?
I'm not doing development as such - I'm just running existing
applications. The application in question is Cakewalk - for sequencing
MIDI files, to play music on a synthesiser. This uses a number of
sub-windows within the application window - whose sizes are saved when
you save the file.

I want to create the files on my W7 system and then transfer them to the
laptop. I want the sub-windows to fit within the application window -
hence my desire to create a window of laptop size on the W7 system.
--
Cheers,
Roger
____________
Please reply to Newsgroup. Whilst email address is valid, it is seldom
checked.
 
M

mick

Is there any way in W7 of finding the size (in pixels) of a given window?
I want to create a 1024 x 768 window (on a much larger screen) so that I can
see what a particular application will look like when run on a laptop with a
1024 x 768 screen.

I can find lots of info about maximising and minimising, or making a window
occupy the right or left half of the screen, but not about finding the actual
size of a window.

I have a work-around in that I can crop a photograph to 1024x768 (in 1:1
zoom) in The Gimp, and then lay my window over it - but that's a bit messy.
there's got to be a better way!

Any clues, anybody?

On screen ruler.
http://www.arulerforwindows.com/
 
M

Mike Barnes

Roger Mills said:
I want to create a 1024 x 768 window (on a much larger screen) so that
I can see what a particular application will look like when run on a
laptop with a 1024 x 768 screen.
Temporarily change your screen resolution to 1024x768?.
 
J

J. P. Gilliver (John)

Mike Barnes said:
Temporarily change your screen resolution to 1024x768?.
That was my reaction too. If you're worried about messing up your
desktop, many of the icon-position-remembering utilities (I think
including iconoid) will remember icon positions for several resolutions.
--
J. P. Gilliver. UMRA: 1960/<1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

I don't even use words like 'environment'. People live in /the world/. The
'environment' is the kind of place where people wear 'apparel' instead of
clothes. - Billy Connolly, in Radio Times, 14-20 February 2009
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top