Adding text to a scrolling window.



G'day All,
  I'm trying to do something in gtk but are having a hell of a time doing it.

What I'm writing is a bit like a "talk mode" in a terminal program.  I have
an entry box down the bottom and received text in a box above it.  Now I've
got most of it done already, what I am having trobule  with is this
receive box.

I'd like the box to scroll down to the lowest line in the window, something like
                                                      (Hello)
   +----------------+-+                               +-------------+-+
   | Hello          |#|      <---what i get           | World!      | |
   | World!         | |          what i want -->      | Goodbye     |#|
   +----------------+-+                               +-------------+-+
     (Goodbye)

Currently, I have it if the window is two lines long, I would see "hello" and 
"world", but not "Goodbye".  I'd like to be able to see the bottom two lines.
The scrollbar just shrinks but doesn't move.

The current setup is using a text widget in a table along with a vscrollbar.

  - Craig



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]