[comp.windows.x] Xaw Viewport question

duanev@kauai.ACA.MCC.COM (Duane Voth) (05/24/89)

I have a Viewport widget sandwiched in between a Shell and a form
widget above, and a list widget below.  After playing with 
XtNallowShellResize, XtNresizable, XtNbottom, XtNright, XtNallowVert,
XtNallowHoriz, XtNwidth, and XtNheight all day I suspect the Viewport
isn't going to do what I want it to.

I want the scroll bars to show up only if the Viewports parent refuses
to enlarge the Viewport.  When XtNallow{Vert,Horiz} are False, no
scroll bars ever appear.  When I set XtNallow{Vert,Horiz} to True,
the Viewport will wait for the child list widget to determine an
initial size and then hold it to that size using its scroll bars.
Adding more items to the list widget causes the Viewport to cram
its scroll bars into the space that list widget first asked for
instead of asking the form widget for more space.

Anyone know the magic resource combination for what I'm after?

-- 
--- duane voth             duanev@mcc.com
----           ALL systems are arbitrary!
--- effectiveness is the measure of Truth
--