Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!rutgers!cmcl2!adm!husc6!genrad!mag From: mag@genrad.com (Michael Gray) Newsgroups: comp.windows.x Subject: Hp TextEdit Widget Question Message-ID: <18804@genrad.UUCP> Date: 23 Mar 89 15:45:15 GMT Sender: news@genrad.UUCP Reply-To: mag@genrad.UUCP (Michael Gray) Organization: GenRad, Inc., Concord, Mass. Lines: 33 This is a relatively simple question. I am using the Hp widgets and Xt intrinsics shipped with X11R3. I am creating a ScrolledWindow widget and placing a text edit widget inside it (as the only child). The textedit widget has the following resources set: XtNwrap to XwSoftWrap XtNscroll to XwAutoScrollVertical. When the textedit widget is not inside the scrolled window, every things works fine. However, when it is a child of the scrolled window it doesn't scroll at all (no big suprise I suppose). What I would like to know, is there a method that would allow the scrollbars of the scrolled window to be updated as the user moves around in the text. Conversely, is there a way that the scrollbars can affect the text widget. I assume that I could probably solve this problem with a series of callbacks, I was hoping that there would be some way that it could be handled automagically. Thanks in advance, Michael Gray GenRad Inc. Concord, MA. mag@genrad.com