Getting text widget to scroll down as text is inserted
- From: Matthew Miller <namille2 vt edu>
- To: gtk-list gnome org
- Subject: Getting text widget to scroll down as text is inserted
- Date: Wed, 14 Jun 2000 11:43:15 -0400
Hi, I'm writting a small app that is closely patterned after the Text
example in the gtk+ tutorial. There is a Text widget and a VScrollbar wigdet
attached to the Text's vadj member.
Well, the problem I'm having is that when I insert text into the Text widget
I want it to scroll down so that I can see the newly inserted text. I have
tried several things: connecting to the value-changed signal and calling
gtk_adjustment_clamp_page(), or gtk_adjustment_set_value(). I just think I'm
going about this the wrong way.
Thanks for any help.
Matthew
--
A good government is one "which shall restrain men from injuring one
another, shall leave them otherwise free to regulate their own pursuits
of industry and improvement, and shall not take from the mouth of labor
the bread that it has earned."
-Thomas Jefferson (inaugural address)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]