Path: utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!hplabs!hp-pcd!hpcvlx!jack From: jack@hpcvlx.HP.COM (Jack Peterson) Newsgroups: comp.windows.x Subject: Re: Form widget question Message-ID: <100920032@hpcvlx.HP.COM> Date: 16 Dec 88 17:52:45 GMT References: <8812151934.AA20687@rothko.cray.com> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 39 / hpcvlx:comp.windows.x / hrp@snoid.cray.COM (Hal Peterson) / 11:34 am Dec 15, 1988 / I am trying to make a Form widget with three daughter widgets like this: +------+------+ | Label | +------+------+ | | | | Form | Form | |______|______| but I keep winding up with this: +------++-----+ | Label | | +------++-----+ | | | | Form | Form | |______|______| I can't find any way, short of setting the initial size of the Label widget to some large value, to center the Label in the enclosing Form. I have tried setting XtNright <- XtChainRight XtNleft <- XtChainLeft in the Label widget, with no change in behavior, and I think that makes sense, but it still doesn't solve my problem. -- Hal Peterson / Cray Research / 1440 Northland Dr. / Mendota Hts, MN 55120 hrp@cray.com uunet!cray!hrp (612) 681-3145 ---------- With the HP Widget set, in order to span the width of a form, the constraint resources XtNxAttachRight and XtNxResizable must both be set to TRUE. Jack Peterson HP Corvallis Workstation Operation Support and Training