[comp.windows.x] ChainRight w/Xaw

Christian.Molick@CS.CMU.EDU (06/08/90)

I am trying to use r4 Athean Widgets to make some custom menu-like
and dialog-type interface things. When I use the ChainRight to get my
text field to go all the way across the dialog, it sits on the left.
When I
use ChainRight to get the cancel button to stay left, it stays on the
right
next to the ok button. Is there a fix for this?

ChristainM

kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (06/13/90)

> I am trying to use r4 Athean Widgets to make some custom menu-like and
> dialog-type interface things. When I use the ChainRight to get my text field to
> go all the way across the dialog, it sits on the left.  When I use ChainRight to
> get the cancel button to stay left, it stays on the right next to the ok button.
> Is there a fix for this?

Unfortunately the Athena Form widget will probabally not do what you want.  The
XawChain<something> resources are not used when the form is originally laying
out the widget, only when the widgets are resized.  I suggest that you read the
R4 Xaw documentation about the Form widget's layout policy.  It is pretty clear
about what it can and cannot do.

Remember that you can chain the left and right edges of a child of the Form
independantly.

						Chris D. Peterson     
						MIT X Consortium 

Net:	 kit@expo.lcs.mit.edu
Phone:   (617) 253 - 9608	
Address: MIT - Room NE43-213