Path: utzoo!mnetor!uunet!husc6!cmcl2!nrl-cmf!ames!lll-tis!lll-winken!ubvax!vix From: vix@ubvax.UB.Com (Paul Vixie) Newsgroups: comp.windows.x Subject: question about the Viewport widget Message-ID: <6563@ubvax.UB.Com> Date: 23 Mar 88 18:58:17 GMT Reply-To: vix@ubvax.UUCP (Paul Vixie) Organization: Ungermann-Bass Enterprises Lines: 23 I've encountered a burning need for a scrollable graphics window widget as a child of a VPaned widget. The Viewport widget looks perfect, but I am having trouble understanding one little thing about it: How do I get the windowID of the child window? There are four parts of the Viewport widget -- two (optional) scroll bars, a clip window, and the child window. This child window is where I will presumeably draw my graphics, but I can't see how I can get a hold of the windowID other than by explicitly referencing XtWindow(portwidg.???.child), which seems like an ugly way to pass this information from the widget to the application. Looking into lib/Xaw/Widget.c, I can't even see where it ever associates a window with the "child" structure member. Perhaps I am supposed to create a window and tell the Viewport widget about it when I create it (the widget), but if so I can't see from the source or the docs how to do it. Help? -- Paul Vixie Consultant Work: 408-562-7798 vix@ub.com vix%ubvax@uunet.uu.net Ungermann-Bass Home: 415-647-7023 {amdahl,ptsfa,pyramid,uunet}!ubvax!vix Santa Clara, CA <>