[comp.windows.x] Shrink To Fit

andy@ucbarpa.Berkeley.EDU (Andrew Purshottam) (12/09/89)

(I tried posting this from work and never saw it, so re-posting;
please excuse if duplicate)

Hi, I have an application that makes a bunch of top level
Xt shell widgets, with form widgets in them and inside these forms,  other stuff, including forms.

Many of the leaf windows have well defined sizes because they hold 
text or fixed sized  icon rasters. For those (like scrolled windows,
say) without well defined dimensions, I can specify them. What
I'd like all the forms to do is to "shrink-to-fit" around the 
leaf widgets, thus automatically sizing the shell widnow. 
I  am running aixwm on RT/PC 2.2.1 AIX and olwm on sysVR3.x on
at wgs. I have tried setting the resizeable options on all widgets
and have no success. Any suggestions?

I have looked at a few X window applications (like Xmh) and they seem to use
rather elaborate schemes to size themselves. I am interested in
any suggestion for study of good simple automatic shell window sizing.

Thanks very much,
	Andy