po@volta.ece.utexas.edu (01/15/89)
I have a set of command buttons inside a Form widget, which is in turn inside a Vpane widget, as follows: +---------------------------------------+ | | | Text Widget | | | +-------------------------------------o-+ | +-----+ +-----+ +-----+ +-----+ | | | | | | | | | | | | +-----+ +-----+ +-----+ +-----+ | | +-----+ +-----+ | | | | | | Form Widget | | +-----+ +-----+ | +-------------------------------------o-+ | | | Text Widget | | | +---------------------------------------+ Is it possible to : a) disable any resize of the Form widget when the user uses the Grip to change the size of both text widgets while at the same time b) allow the Form widget to resize to its optimum size when the user resizes the entire Vpane widget (for example, making it bigger so that all buttons are on one row) ? If I use XtPanedSetMinMax(), I cannot get (b). If I use XtPanedAllowResize(), I cannot get (a). Any ideas ? Thank you! Po Cheung (po@volta.ece.utexas.edu)
kit@ATHENA.MIT.EDU (Chris D. Peterson) (01/20/89)
> Is it possible to : > a) disable any resize of the Form widget when the user uses the Grip > to change the size of both text widgets > while at the same time > b) allow the Form widget to resize to its optimum size when the user > resizes the entire Vpane widget (for example, making it bigger so > that all buttons are on one row) ? > If I use XtPanedSetMinMax(), I cannot get (b). > If I use XtPanedAllowResize(), I cannot get (a). Nope, this is one of those things that just isn't supported. If anyone out there would like to propose an extension to the VPaned widget to allow this, we would be willling to listen. As always if patches are provided we will listen harder :-). Chris D. Peterson MIT X Consortium / Project Athena Net: kit@athena.mit.edu Phone: (617) 253 - 1326 USMail: MIT - Room E40-321 77 Massachusetts Ave. Cambridge, MA 02139