number of available windows [message #299] |
Thu, 20 February 1992 16:44 |
jeb
Messages: 2 Registered: February 1992
|
Junior Member |
|
|
In article <1992Feb13.105530.10014@urz.unibas.ch>
hofer@urz.unibas.ch (Remo Hofer) writes:
> Is thre some way to get the number of windows available in pv-wave? My manual tells
> me that I will have 16 windows on a VMS machine (which is true on our VAXstation) and
> 10 windows on any unix machine. But on our Personal Iris I get 32 windows....
PV-WAVE 3.1 allows a maximum of 32 windows (previously was 16 for most
window systems). Under Sunview, this may be less as you are limited by the
number of file descriptors available.
In 3.1 of Wave, a new keyword, WINDOW_STATE, is now available. WINDOW_STATE
will return an array for all available WAVE windows, with a value indicating
if a window is opened or closed. A value of 1 shows the window is open, and 0,
the window is closed. As an example for using this keyword, enter:
WAVE> window, 3 ; Open window 3
WAVE> device, window_state = winarray
WAVE> print, winarray
0 0 0 1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
WAVE> print,"Total windows open: ",sum(winarray,0)
Total windows open: 1.00000
---
--
-----------------------------------
John Bee, Precision Visuals, Inc.
303/530-9000 (Voice)
email: boulder.colorado.edu!pvi!jeb
|
|
|