Starting a 4sight window iconified

James P. Loan loan at Neon.Stanford.EDU
Tue Apr 10 10:17:54 AEST 1990


A week or two ago I posted two questions about making 4sight windows.

The first one was about specifying a default size for a window but then
allowing the user to resize it after opening it. The answer is to call
prefposition (or preforigin), then winopen, then winconstraints. The
last routine "resets the window constraints to their default values,
if any." And I might add that if a window constraint has no default
value (like position and origin), it resets it to none. I can't believe
that I didn't try this at least once when trying to solve the problem
myself.

The second one concerns starting a window iconified. I have an application
that opens many windows, and I want some of them to start iconified, and
others (with different names) to start uniconified. Someone pointed me
to the files in /usr/NeWS/lib/NeWS, and that got me part of the way.
I found out that the command "wsh -p100,100 -Z7" will start a wsh
iconified, and when it is unstowed, it will have an origin at 100,100.
This is exactly what I want to do, except from within my program, not
on the command line. I have a bad feeling that wsh is a NeWS 
application and would do it differently than my gl application 
could. Can anyone get me further along that this? I know nothing about
NeWS, so please use small words and speak slowly.

thanks,
pete loan
loan at neon.stanford.edu



More information about the Comp.sys.sgi mailing list