Path: utzoo!attcan!uunet!ginosko!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Problem with Xaw Form and Box widgets Message-ID: <8907251957.AA03985@expo.lcs.mit.edu> Date: 25 Jul 89 19:57:31 GMT References: <222@nap1.cds.wpafb.af.mil> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 33 [picture deleted] > The "canvas" widget is a Label (for now) and should resize in conjunction with > its parent Form. I'd like button-box to maintain a fixed size based on the > font used in its command buttons. I've tried button-box as both a Box > and a Form widget. In both cases it resizes when I resize its parent Form, > even if I've set the XtNresizable attribute to false for button-box and the > buttons inside it. Try setting the XtNleft and XtNright resources for the label to XtChainLeft, and the XtNtop and XtNbottom resources to XtChainBottom. This will keep it the same size. > Two questions: > 1) Does XtNresizable really work? Yes, but it is intended to be used by the form to determine whether or not to listen to resize requests from its children. Setting it to FALSE does not mean that the children will never be resized, it means that they can never ask to be resized. The form may do anything it wants to its children. > 2) Is there a way to force all buttons in a Box widget to stay on the same > row? Just making the box wide enough (XtNwidth) doesn't seem to work. Nope, use the Form or the VPaned. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213