Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!image.soe.clarkson.edu!AAron From: AAron@image.soe.clarkson.edu (AAron nAAs) Newsgroups: comp.sys.atari.st.tech Subject: Calculating correct window size Message-ID: <1990Aug14.030733.21587@sun.soe.clarkson.edu> Date: 14 Aug 90 03:07:33 GMT Sender: AAron@sun.soe.clarkson.edu (AAron nAAs) Organization: Clarkson University, Potsdam, NY Lines: 22 Neither the PROGRAMMER'S GUIDE TO GEM or the MWC manual explain wind_calc() very clearly. This may be what I need. I have an object structure I created with a RCS, and I want to put it into a window that fits around it exactly. I named the lowest (largest) box, and found out it's width and height, and gave them to wind_create() to come up with the correct size. When I put my object into it, I lost the bottom of the object. (I am clipping outside the window) I have figured that NAME bar in the window is taking up space I did not count on. I wanted to make the window the size of my object plus the HEIGHT of the NAME bar, so that I can fit my WHOLE object into the window. How do I figure out how big the NAME bar is? (I want to FIGURE OUT how tall the window is rather than hard coding a height) Or what is the easiest way of figuring out how big to open my window as? AAron nAAs AAron@sun.soe.clarkson.edu