[ba.windows.x] placement of several Core widgets within a viewport widget

chapman@lll-lcc.UUCP (Carol Chapman) (04/17/89)

I have 3 Core widgets, each of which holds a digitized color image.  I
would like to display all 3 widgets, plus some text, within a viewport 
widget.  The viewport widget is scrollable.  When I created the viewport 
widget, I gave it an initial size, but since the size may have changed since
then, how do I know the size of the viewport so that I can know where
to place the Core widgets?  I have been planning to use XtSetArg to
set XtNx and XtNy which I've read are the x and y positions to place
the widget within its parent, which in this case is the viewport.  If
it makes any difference, the viewport widget is part of a vpaned
widget.

Am I going about this correctly?

On a slightly different topic, I complained to the net earlier about
not being able to use XtNwidth to set the width of one of my viewport
widgets which is within a form widget.  Someone responded to me that
there was a bug in R2, but that that has been fixed in R3.  Well, I
*am* using R3, so I guess the bug is still there!

carol

-- 
-------------------------------------------------------------------------------
Livermore Lab            (chapman@lll-crg.llnl.gov or chapman@lll-lcc.llnl.gov)
P.O. Box 808, L-153      Tel. (415) 423-7876
Livermore, CA  94550     "Never own anything that you have to FEED or PAINT."