Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!ISI.COM!tsang From: tsang@ISI.COM (Kam C. Tsang) Newsgroups: comp.windows.x.motif Subject: how do I control what's visible in a scrolled window when I add data? Message-ID: <9105310115.AA00461@phecda> Date: 31 May 91 01:15:25 GMT References: <1991May30.012523.16856@porthos.cc.bellcore.com> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 11 > I have a scrolled window that I want to leave open and append new data to the > end of the work window widget. When new data is added, I want it to have the > appearance that it's scrolling up automatically so that the most recent entry > is visible (until someone drags the scroll bar). > Any suggestions on how to accomplish this? If it's a scrolled text widget, try this: XmTextShowPosition(textWidget, XmTextGetLastPosition(textWidget)); -kam