changing window size under PROGRAM control

Jill Gemmill jpg at NRC3D.NRC.UAB.EDU
Fri Jun 21 08:15:21 AEST 1991


	Suppose I want to write a series of images into ONE window, one
after another.  Now, suppose these images are not all the same size.  If
the program sees that the next window is a different size, it would be 
nice to use a "prefsize()" with the new size to reshape the window.

	So far, it seems that window size is reconfigurable only if there
is total freedom ( or total freedom given some fixed aspect ratio) in the
new size -- but it's not possible to jump from one fixed size to another.

	Let's assume we like 1 image data point per pixel as our image
mapping strategy, so exclude solutions that call for blowing up pixels to
fill the window.

	My reading of the documentation was that prefsize should be called
before winopen() - which disallows any resizing; OR that prefsize should be
called after the winopen(), followed by winconstraints().  That approach
does not seem to work.

	Can anyone think of way to do this without closing the window 
down and opening another one of a different fixed size?

-------------------------------------------------------------------------------
    Jill Gemmill			    	
    Neurobiology Research Center	    INTERNET: jpg at nrc3d.nrc.uab.edu
    University of Alabama at Birmingham  
    Volker Hall G82E			    PHONE: 205-934-7111 
    Birmingham Alabama 35294-0019	    FAX: 205-934-6571
-------------------------------------------------------------------------------

			
				

			
			



More information about the Comp.sys.sgi mailing list