Re: Automatic scrolling of textview widget?



Preben Randhol wrote:
Hi

I have a textview widget in which I have put text and entry widgets. I
use a scrolledwindow widget as the textview widget becomes long. I
fill in the first entry widget and then press TAB to jump to the next.
The problem is that if the next entry widget is not visible then I
would like that the scrolledwindow automatically scrolled the textview
widget so that the entry box I jumped to is visible.

Can on manage to do something like this?

gtk_container_set_focus_vadjustment() is what you need.

Cheers,
               -Tristan

TIP: I messed up using this func before, so I recommend you check out
how its used in the gtk-demo to be sure to get it right the first time ;-)




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