🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #124

Specifying window location and size

#124
From: Lee D. Coller
Date: Wed, 29 Jul 1992 00:50
31 lines
2007 bytes
I have a need in my system to be able to open up a ManagedWindow, move
and/or reshape it, close it, and then to create a new window with the same
contents at the same location.

When I create a new window, giving it the location of the old window using
place(Coord,Coord), It seems to be offset by the titlebar height and border
width.  I know this is due to interaction with the window manager (I'm using
the motif wm), but does anyone know of a general fix around this.  I can
figure out what the offset is going to be and adjust, but this is not
general.

I would also like the contents of the window to have the same normal size,
stretchability, and shrinkability.  The problem is best explained by
example.  Suppose I have an open window whose interior cannot be shrinked
but can be infinitely stretched.  I stretch the window, close it, and then
create a new window with the same interior but stretched to the size of the
previous window.  I do this by giving the new window a geometry string with
the size of the previous window.  I would like to be able to then shrink
that window back to the normal size of the interior, but I am unable to
shrink that window at all.  Does anyone know of a solution to this problem?

I am using interviews 3.0 and Unidraw.

Thanks-

Lee Coller (coller@alnitak.usc.edu)
-- 
-----------------------------------------------------------------
Lee D. Coller (coller@alnitak.usc.edu)		+1 (310) 379-0844
USC Behavioral Technology Labs, 250 N. Harbor Dr. Ste 309
Redondo Beach, California, 90277
Technical Details
Message-ID: <l7bqr3INNe5d@alnitak.usc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!sol.ctr.columbia.edu!usc!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!sol.ctr.columbia.edu!usc!news
From: coller@alnitak.usc.edu (Lee D. Coller)
Newsgroups: comp.windows.interviews
Subject: Specifying window location and size
Date: 28 Jul 1992 17:50:43 -0700
Organization: University of Southern California, Los Angeles, CA
Lines: 31
Sender: coller@alnitak.usc.edu (Lee D. Coller)
Distribution: world
Message-ID: <l7bqr3INNe5d@alnitak.usc.edu>
NNTP-Posting-Host: alnitak.usc.edu