Newsgroups: comp.windows.x
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!news
From: tdm@allspice.lcs.mit.edu (Trevor Mendez)
Subject: Getting Xaw's Form Widget to Clip Windows rather than resize
Message-ID: <1991Apr28.190654.26194@mintaka.lcs.mit.edu>
Sender: news@mintaka.lcs.mit.edu
Organization: MIT Laboratory for Computer Science
Date: Sun, 28 Apr 91 19:06:54 GMT
Lines: 15

I am using a Form widget to display a configurable list of command buttons.
The Form widget's parent is a transient shell widget.  It is now likely
that the list of command buttons may get VERY long.  In this case the Form
widget expands to a size many times longer than the height of the screen.
When I put constraints on the transient shell's max_height, I have to resize
it inorder for the constraint to be put into effect -- XtResizeWidget --
otherwise the window remains large until a resize is attempted with the 
window manager (for me twm).  When I call XtResizeWidget and pass the 
shell's id, the form recalculated the layout and makes the command buttons
really thin in order to make everything fit -- they become too small to read
the labels.  How do I get prevent the Form widget from re-doing the layout?
XawFormDoLayout(form, FALSE) doesn't work.  I want to keep the buttons large
and then add a scrollbar.  Thanx.
	Trevor Mendez
	tdm@allspice.lcs.mit.edu
