chapman@lll-lcc.UUCP (Carol Chapman) (04/19/89)
I am using 3 Core widgets within a form widget. The form widget is within a scrollable viewport widget. Each Core widget contains a different color image that I am trying to display. I pass arguments to XtNfromVert and XtNvertDistance to tell the form widget where to place the Core widgets. As far as I can tell, XtNvertDistance works ok, but no matter what I tell it, XtNfromVert seems to assume that the distance is from the top edge of the form rather than from the Core widget whose id I pass as an argument. Am I doing something wrong? If this is a bug, can someone please suggest a way around this? I must be able to display all 3 Core widgets simultaneously. 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/21/89)
> but no matter what I tell it, XtNfromVert seems to assume that the > distance is from the top edge of the form rather than from the Core > widget whose id I pass as an argument. I have used this resource several times and have had no problems with it. Perhaps if you can send me some sample code I can figure out what is going on. > Am I doing something wrong? I think so, but w/o code I cannot tell. > If this is a bug.. Perhaps, but I doubt it. Chris D. Peterson MIT X Consortium
converse@EXPO.LCS.MIT.EDU (Donna Converse) (04/21/89)
>XtNfromVert seems to assume that the >distance is from the top edge of the form rather than from the Core >widget whose id I pass as an argument. Hmm, maybe the widget id is NULL. That's the way it would behave if the widget id was NULL. Maybe a bunch of these problesms have a single origin: not having widget id's.