[comp.windows.x.motif] how do I control what's visible in a scrolled window when I add data?

wws@rruxc.uucp (Still Searching) (05/30/91)

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?

Thank you,
Wayne Scott
----------------------------------------------
	wws@bcr.cc.bellcore.com
I'm just a soul whose intentions are good,
Oh Lord, please don't let me be misunderstood.

tsang@ISI.COM (Kam C. Tsang) (05/31/91)

> 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