Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!ucsd!ucbvax!HPCVXBEN.CV.HP.COM!ben From: ben@HPCVXBEN.CV.HP.COM (Benjamin Ellsworth) Newsgroups: comp.windows.x.motif Subject: Re: bad size default for the XmForm widget Message-ID: <9007121639.AA01279@hpcvxben.HP.COM> Date: 12 Jul 90 16:39:30 GMT References: <1990Jul11.165130.3364@bmc.uu.se> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 32 > Why are the defaults for the initial size of the Form widget so bad ? The 1.0 Form does not calculate its initial size correctly in many cases (the most common being child attachments to the bottom or right edge of the Form). > ... I have tried to set the allowOverlap resource to False in order > to prevent overlapping, but it is ignored. The allowOverlap resource is an artifact of the class heirarchy of the Form--it comes from BulletinBoard--and is ignored. This is true in 1.1 also. There is some chance that this resource will be honored at some time in the future. > Is there any standard, simple way to get a good default size of the > window ? There is no simple answer. The "standard" answer is to set up a map callback and in that callback query all of the children for their size, do the necessary calculations and size the form accordingly. Good Luck! ----------------------------------------------------------------------- Benjamin Ellsworth | ben@cv.hp.com | INTERNET Hewlett-Packard Company | {backbone}!hplabs!hp-pcd!ben | UUCP 1000 N.E. Circle | (USA) (503) 750-4980 | FAX Corvallis, OR 97330 | (USA) (503) 757-2000 | VOICE ----------------------------------------------------------------------- All relevant disclaimers apply. -----------------------------------------------------------------------