Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!mintaka!olivea!apple!agate!ucbvax!alfalfa.com!nazgul From: nazgul@alfalfa.com (Kee Hinckley) Newsgroups: comp.windows.x.motif Subject: Re: button spacing... Message-ID: <910213010340.7419@alphalpha> Date: 13 Feb 91 06:03:40 GMT References: <1991Feb13.030156.15761@ux1.cso.uiuc.edu> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 18 > > > This may indeed be a novice question, but I have not been able > to figure it out. How does one get buttons (like on the convenience > dialog widgets -- the ok, cancel, and help buttons) to space > themselves in proportion to the window size? I have tried many If this isn't in the FAQ it should be. Answer: Either use a BulletinBoard and hardwire the code, use a Table widget (I think this will work, has anyone tried it?), or step back and reevaluate. I do the latter. The usually reason you want to do this is you need a custom dialog with your own contents. Guess what! All Prompt dialog's (file dialog, selection dialog and prompt dialog) allow you to add a single child (which may be a manager widget). All you have to do is create a prompt dialog, unmanage the prompt, add a form, and do whatever you want.