CWIKLA@uimrl7.mrl.uiuc.edu (John/Consultant) (02/13/91)
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 Row-Column configurations, and am now delving into the Form widget (unfortunately with disastrous results). I have Young's examples from his book, but they do not help much. So any help, hints, program examples would be appreciated. ****************************************************************************** * John L. Cwikla * cwikla@uiucmrl, cwikla@uimrl7.mrl.uiuc.edu * * Chief Consultant, MRLCFC * uimrl::cwikla (217)333-8281 * * University of Illinois * Redefining Lunacy... * ******************************************************************************
nazgul@alfalfa.com (Kee Hinckley) (02/13/91)
> > > 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.