RE: [gtkmm] "Autoscrolling" TextView
- From: Murray Cumming Comneon com
- To: morten mbrix dk, palm nogui se
- Cc: gtkmm-list gnome org, gtk-list gnome org
- Subject: RE: [gtkmm] "Autoscrolling" TextView
- Date: Tue, 18 Nov 2003 08:15:41 +0100
Morten Brix Pedersen wrote:
> Den 18/11-2003, kl. 2:52, skrev Christer Palm:
> > Hi!
> > Does anyone have a smart way to make a scrolled TextView
> scroll along
> > as text is inserted - if, and only if the TextView is showing the
> > bottom part of the buffer?
> > I can't find an elegant way to determine whether the TextView is "at
> > the bottom" of the buffer, and to handle the situation when
> > an autowrap TextView causes the last line to split, which in turn
> > causes it to drop out of the bottom position.
> I implemented this a long time ago in my LostIRC application,
> which can
> be found at http://lostirc.sourceforge.net/. You should see the
> onScroll and onResize functions in src/gtkmm/TextWidget.cpp.
I think I saw something about TextView scrolling improvements in the GTK+
murrayc usa net
] [Thread Prev