[comp.windows.x] help with Athena list widget in a viewport widget

slm@cs.arizona.edu (Sandy Miller) (08/31/90)

I have a list widget inside a viewport widget with a vertical scrollbar.
During processing, I am adding items to the list.  When the list is smaller
that the viewport widget, everything works fine when a new item is added to
the list.  When the original list is larger than the viewport, scrolling
to get access to the entire list works fine.

What I cannot figure out how to do, is to add a new item to the list when
the list is larger than the viewport and be able to scroll to that new item.
I have tried using XawScrollbarSetThumb(), but it does not seem to do
anything.  It looks like I need to let the viewport widget know that the
size of the list widget is now larger.  (I am using XawListChange() to add
a new item to the list.)  Can someone help me with this?

I would also like to force the list to be drawn originally with the last 'n'
items appearing in the window, rather than the first 'n'.

Thanks in advance.

-sandy