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

Home » Public Forums » archive » X device screen size
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
X device screen size [message #203] Wed, 19 February 1992 11:32 Go to previous message
jeb is currently offline  jeb
Messages: 2
Registered: February 1992
Junior Member
hofer@urz.unibas.ch (Remo Hofer) writes:
>
> Is there some way to get the screen size of the X display? I use pv-wave 3.10 ...
>
>


New in PV-WAVE 3.1, it is very easy to obtain the size of the screen. This
information is stored in a structure "!display_size". This feature is
documented in the new PV-WAVE Technical Reference Manual. Note that you
need to execute some graphics command (ie. loadct, window, etc.) to assign
the information from the X server to the variable.



PRINT,!DISPLAY_SIZE
;{ 0 0}

Execute some graphic command to assign values to the structure
LOADCT,0

PRINT,!DISPLAY_SIZE
;{ 1152 900}

PRINT,'Display Size: X =',!DISPLAY_SIZE.X,' Y =',!DISPLAY_SIZE.Y
;Display Size: X = 1152 Y = 900


---
--
-----------------------------------
John Bee, Precision Visuals, Inc.
303/530-9000 (Voice)
email: boulder.colorado.edu!pvi!jeb
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to change widget fonts ?
Next Topic: X-windows fonts

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

Current Time: Wed Oct 08 17:00:41 PDT 2025

Total time taken to generate the page: 0.00456 seconds