Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!NRC3D.NRC.UAB.EDU!jpg From: jpg@NRC3D.NRC.UAB.EDU (Jill Gemmill) Newsgroups: comp.sys.sgi Subject: changing window size under PROGRAM control Message-ID: <9106202215.AA06603@nrc3d.nrc.uab.edu> Date: 20 Jun 91 22:15:21 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 35 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@nrc3d.nrc.uab.edu University of Alabama at Birmingham Volker Hall G82E PHONE: 205-934-7111 Birmingham Alabama 35294-0019 FAX: 205-934-6571 -------------------------------------------------------------------------------