[comp.windows.x] Xaw Viewport help needed.

thor@stout.atd.ucar.edu (Rich Neitzel) (06/29/90)

I have an application that needs to display a large (@200) number of
children aligned horizontally. They are encapsulated in a box widget and
I want to put them into a viewport, so that the entire set need not be
visible. Unfortunately, when it is time to realize the widgets, things
just spin. The process runs, but it never manages to put up the widgets.
So my questions are:

1> Can the viewport widget support a child with children?

2> If yes, how do you set things up?

3> If no, any suggestions about other possible means of scrolling?

Richard Neitzel thor@thor.atd.ucar.edu	     	Torren med sitt skjegg
National Center For Atmospheric Research	lokkar borni under sole-vegg
Box 3000 Boulder, CO 80307-3000			Gjo'i med sitt shinn
303-497-2057					jagar borni inn.

kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (06/29/90)

> I have an application that needs to display a large (@200) number of
> children aligned horizontally. They are encapsulated in a box widget and
> I want to put them into a viewport, so that the entire set need not be
> visible. Unfortunately, when it is time to realize the widgets, things
> just spin. The process runs, but it never manages to put up the widgets.
> So my questions are:

> 1> Can the viewport widget support a child with children?
> 
> 2> If yes, how do you set things up?

This should work just fine.  Perhaps your configuration is strange, or your
boxes are big enough to run off the end of a signed short (2^15 - 1).  The only
client I know of that does this sort of thing is xmh, so perhaps you can look
there for an example (although I hesitate to mention this, since the xmh code is
to twisty, but if you are brave you can take a look).

If you can provide a short example that causes the Viewport to fail, please
submit a bug report using the form provided in "lib/doc/bugs/bug-report" in your
X tape.

						Chris D. Peterson     
						MIT X Consortium 

Net:	 kit@expo.lcs.mit.edu
Phone:   (617) 253 - 9608	
Address: MIT - Room NE43-213