Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!srhqla!quad1!carl From: carl@quad1.quad.com (Carl Priddy) Newsgroups: comp.windows.x.motif Subject: Re: bad size default for the XmForm widget Summary: Motif form widget sizing Message-ID: <13995@gouda.quad.com> Date: 12 Jul 90 16:22:52 GMT References: <1990Jul11.165130.3364@bmc.uu.se> Organization: Quadratron Systems Inc, Thousand Oaks Ca Lines: 11 The form widget provides a couple of interesting ways of ensuring that everything is visible and in the geometry that you desire. Using the XmNxxxAttachment resource as Xm_ATTACH_FORM, you can specify attachments to the sides of the form itself. Using it as Xm_ATTACH_WIDGET, you can attach the "inside" widgets to each other. I used the XmATTACH_FORM for the attachments, and then used the XmNxxxOffset resource to specify the top and left offsets within the form. I did this because I have no a priori knowledge of how many children the Form will have, or what their sizes are. The form changes size to accomodate it's children. carl priddy