Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!husc6!calliope!kochhar From: kochhar@harvard.harvard.EDU (Sandeep Kochhar) Newsgroups: comp.windows.x Subject: Question about the Viewport widget Keywords: X11R4, Xt, Xaw Message-ID: <2823@husc6.harvard.edu> Date: 7 May 90 02:48:45 GMT Sender: news@husc6.harvard.edu Reply-To: kochhar@harvard.harvard.EDU (Sandeep Kochhar) Distribution: usa Organization: Aiken Computation Laboratory, Harvard University Lines: 23 Is there some way for the program to "scroll" the child of a viewport widget to a particular location (i.e. "fake" the viewport into believing that the user moved the scrollbars to that location) after the widgets are realized. E.g., given coordinates (x, y), I would like the point (x,y) of the child become the left top corner that is visible in the viewport. I tried setting the child's resources XtNx to -x, and XtNy to -y but to no avail.... Help.... Thanks. Sandeep Kochhar (617) 495-3988 mail: kochhar@harvard.harvard.edu Harvard University kochhar@harvard.csnet 33 Oxford st, kochhar@harvard.uucp Cambridge, MA 02138 kochhar@harvard.bitnet Fax: (617) 495-9837