RE: scrolling windows
- From: martyn 2 russell bt com
- To: lgvelazc csc tntech edu, gtk-app-devel-list gnome org
- Subject: RE: scrolling windows
- Date: Tue, 4 Mar 2003 15:22:54 -0000
look for the "changed" signal on the GtkTextBuffer
use either gtk_text_view_scroll_to_iter() or gtk_text_view_scroll_to_mark()
see here:
http://developer.gnome.org/doc/API/2.0/gtk/GtkTextView.html#gtk-text-view-sc
roll-to-iter
to scroll to the iter at the end of the text - you can get this iter with:
gtk_text_buffer_get_bounds() or gtk_text_buffer_get_end_iter() see here:
http://developer.gnome.org/doc/API/2.0/gtk/GtkTextBuffer.html#gtk-text-buffe
r-get-bounds
Regards,
Martyn
-----Original Message-----
From: Luis G. [mailto:lgvelazc csc tntech edu]
Sent: 04 March 2003 02:57
To: gtk-app-devel-list gnome org
Subject: scrolling windows
How do you get a scrolling window to automatically scroll when text is
added to a text view that is assigned to it?
Thanks,
--
Luis G.
www.geocities.com/zap84.geo
--
Climbing is life.
The rest? Only details...
I'd rather be climbing...
"One day [today] we must come to see
that peace is not merely a distant goal
that we must seek, but a means by which
we arrive at that goal."
--Martin Luther King, Jr.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]