[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Showing a specific part of a GtkText
- From: Pierre Sarrazin <sarrazip sympatico ca>
- To: gtk-app-devel-list redhat com
- Subject: Showing a specific part of a GtkText
- Date: Fri, 8 Oct 1999 11:40:33 -0400
Myself:
> I have a GtkText with a vertical scrollbar. The GtkText contains
> a lot of text. At one point, I need to make sure that a word
> at index N in the text buffer is shown in the displayed window.
I solved my problem. I was using Gtk-- and the class Gtk_Editable
does not seem to have the equivalent to gtk_editable_set_position().
That GTK+ function does what I wanted, and very simply...
I did notice that this function brings the scrollbar to a specific
position in the text, but by moving the scrollbar one pixel at a
time. When the text is very big, scrolling that way from top to
bottom can be time consuming. Is this behavior configurable?
--
Pierre Sarrazin <sarrazip@sympatico.ca>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]