[Gtk-sharp-list] Scrolling dynamically at runtime!

Peacelyk eero.j2ms2 at gmail.com
Tue Nov 2 11:31:32 EDT 2010


Hey. So, i have a scrolledwindow. I add bunch of other controls there
(vertically aligned). If i reach to the point where my added controls are
not shown anymore, then i want my vscrollbar to scroll itself to the bottom.
This is what i have tried so far:

Adjustment adj = new Adjustment(350,0.0,350.0,1.0,1.0,1);
scrolledwindow1.VScrollbar.SetScrollAdjustments(adj,adj);

This doesn't work! 350 is the height of the scrolledwindow! first parameter
is 350 which means that the scroll should go to the bottom!

Any help is appreciated!


-- 
View this message in context: http://mono.1490590.n4.nabble.com/Scrolling-dynamically-at-runtime-tp3023865p3023865.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.


More information about the Gtk-sharp-list mailing list