[comp.sys.hp] hp form widget question

mart@ele.tue.nl (Mart van Stiphout) (11/09/89)

I'm having the following problem with hp's form widget.
The widget tree is simple and looks like:

		      toplevel
			 |
			 |
                       form
                       /  \
                      /    \
		 rowcol    workspace
		   |
		   |
                buttons

Problem: if I resize my application on startup using the -geometry option,
the rowcol widget will not grow above its default size (as mentioned in
the manual).
The workspace widget however grows larger than its default in the y direction
but not in the x direction.
Can anyone explain this behavior?
(BTW: at the moment the default sizes are set in my .Xdefaults file).
-- 

Mart van Stiphout
mart@ele.tue.nl
(It's not the fall that kills you, it's the sudden stop)

joel@nastar.UUCP (Joel Rives) (11/10/89)

>mart@ele.tue.nl (Mart van Stiphout) (mart@ele.tue.nl, <378@euteal.ele.tue.nl>):
>Problem: if I resize my application on startup using the -geometry option,
>the rowcol widget will not grow above its default size (as mentioned in
>the manual).
>The workspace widget however grows larger than its default in the y direction
>but not in the x direction.
>Can anyone explain this behavior?

You really haven't given enough information in your example. The rowcol widget
has 3 different layout policies: minimize (the default), maximize and 
ignore. The default policy produces the behaviour you explained. The workspace
widget should be resizable along both the x and y axis. This is dependant
upon the constraint fields imposed upon it by the form widget. There are
a number of tunable paramters which can effect the behaviour of a child
of a form widget. You may know what these are already but you have not 
specified which constraint values you have imposed upon the workspace
widget. In particular, you need to pay attention to the following:

		XtNxRefName	-or- XtNxRefWidget
		XtNyRefName	-or- XtNyRefWidget
		XtNxAddWidth
		XtNyAddHeight
		XtNxResizable	(This is important for the results you desire)
		XtNyResizable	(ditto)
		XtNattachRight	(This is important for scaling along the x axis)
		XtNattachBottom	(This is important for scaling along the y axis)


Have Fun!!!


											Joel Rives