X device screen size [message #216] |
Thu, 13 February 1992 01:48 |
hofer
Messages: 16 Registered: April 1991
|
Junior Member |
|
|
Is there some way to get the screen size of the X display? I use pv-wave 3.10 on a
Personal Iris. My problem is this: I want to open some centered windows (for menus)
and a large window covering the whole screen. Since we use several different X window
servers (other workstations used as X terminals), I cannot use some constant value
for the screen size. I realized that the X device knows about this info, because I
can get it on the screen with "HELP, /DEVICE", wich gives:
Available graphics_devices: 4510 CGM HP LJ NULL PCL PS QMS REGIS SIXEL TEK X
Current graphics device: X
Server: X11.0, Silicon Graphics Inc., Release 4
Display Depth, Size: 8 bits, (1280,1024) <-------- Here it is!!!!!
Visual Class: PseudoColor (3)
Bits Per RGB: 8
Physical Color Map Entries (Used / Total): 16 / 256
Colormap: Shared, 16 colors. Translation table: Enabled
Dither Method: Ordered
Write Mask: 255 (decimal) ff (hex)
Graphics Function: 3 (copy)
Current Font: <default>
Default Backing Store: Pixmap.
Window Status:
31) Window (100, 100), Backing store: Pixmap.
But is there a way to get this info into a variable usable for any procedure?
Thanks in advance for any help
Greetings Remo Hofer
--
RFC822: <hofer@urz.unibas.ch> or <hofer%urz.unibas.ch@CERNVAX.BITNET>
X.400: S=hofer;OU=urz;O=unibas;P=SWITCH;A=ARCOM;C=CH
HEPNET/SPAN: CHGATE::YOGI::HOFER or 20579::48130::HOFER
|
|
|