Re: Gtk2::TextView scrolling



Thomas Christensen said:
Hi,

I am having a problem with scrolling a page in Gtk2::TextView.  Is
there any way to programmatically scroll a TextView?  For instance if
I have a button that has to make it scroll a page up.  Preferably I
would like to invoke the same code, that a <PAGE UP> button invokes in
the TextView.

there's a function that appears to do what you want, but it's not public:
gtk_text_view_scroll_pages at
http://cvs.gnome.org/viewcvs/gtk%2B/gtk/gtktextview.c?rev=1.251&view=markup.

perhaps the code in there will help you do what you're wanting to.

i would of thought there was a way to just do it, so i'm probably missing
something.

-rm



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