peter@polygen.uucp (Peter Ent) (11/17/88)
We're running X11R2 (still waiting for R3 tape) on Sun 3/60 OS3.5. We're trying to create a scrolling list using a viewport widget. We'd like to specify the size of the viewport but find the only way to do this is to realize the top level widget and then do an XtResizeWidget to the size we want. The viewport widget is being put into a formWidget and unfortunately, the size of the form is being based upon the pre-resized viewport widget. When the whole thing appears on the screen, the viewport is the right size, but the form has excess white space. If something happens inside the formWidget (for example, an XtUnmangeChild), the formWidgets shrinks to the proper size. The unfortunate part of this is that the formWidget is inside a boxWidget and the boxWidget is NOT shrinking. In a nutshell: Does anyone know the proper way to get viewport widgets to be sized the way you want them inside a form widget? Things like XtNheight and XtNwidth seem to have no effect. Perhaps this is fixed in R3? --peter ent Polygen Corp. (617) 890-2888