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."
kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (04/19/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. > Am I going about this correctly? Not really, how about putting each of your core widgets and the text widget inside a form which is inside the viewport. I suspect that the problem that you are having is that the viewport does not know how to deal with more than one child. Thus you need another composite widget between the viewport and the children. In this case a Form or Box widget will work quite well. > On a slightly different topic... See my earlier message about this. Chris D. Peterson MIT X Consortium