comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: GET_SCREEN_SIZE in Windows
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: GET_SCREEN_SIZE in Windows [message #26285] Sun, 19 August 2001 11:29 Go to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Justin wrote:
>
> Has anyone got any cunning ideas of how to find the screen size in Windows
> WITHOUT including the task bar (the "start bar").
>
> The simplest way would be to subtract n pixels from the height, however the
> task bar can be moved to the side (as it is by some of our users...)
>
> Cheers,
>
> Justin

You don't mean device,get_screen_size=variable ?


Reimar



--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg1/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml

http://www.fz-juelich.de/zb/text/publikation/juel3786.html
============================================================ ======

read something about linux / windows
http://www.suse.de/de/news/hotnews/MS.html
Re: GET_SCREEN_SIZE in Windows [message #26361 is a reply to message #26285] Tue, 21 August 2001 08:25 Go to previous message
ngls is currently offline  ngls
Messages: 10
Registered: November 2000
Junior Member
r.bauer@fz-juelich.de (Reimar Bauer) wrote in <3B80059B.CE3B206A@fz-
juelich.de>:

> You don't mean device,get_screen_size=variable ?

Sadly no. This gives the same result as:

IDL> print, get_screen_size()
% Compiled module: GET_SCREEN_SIZE.
1280.00 1024.00

Where 1280 by 1024 is the total size of the desktop. If I create a widget
this size, part of the widget is obscured under the Windows task bar. I would
like to size the widget so that it fills all of the available space (i.e.
desktop size less task-bar). This is the size that a maximized window would
fill.

For me, with the task-bar at the bottom of the screen, I would want the
routine to return 1280 by 1000 since the task-bar takes up 24 pixels
vertically. However the task-bar can live up the side of the screen.

Justin
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: problems with VELOVECT
Next Topic: STRMID question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:48:38 PDT 2025

Total time taken to generate the page: 0.00558 seconds