On Fri, 23 Mar 2001, Eduardo Ferro wrote:
> Hi!
>
> I have a ScrolledWindow with a GtkHBox() in it (added with
> add_with_viewport). Inside the GtkHBox i have some buttons and i want
> to change the scroll of the ScrolledWindow when some of the buttons
> get the focus... I only have some experience with Scrolled window
> containing GtkText or other kind of widget that control the scroll but
> i don`t understand how can i control the Scroll bar to see the
> correct part of the HBox
>
> Any suggestion, reading, or function to control this scrolls bars, and
> what widget must to do this control???
>
> Thanks in advance and sorry for my poor english
You can get references to the two adjustments (horizontal and vertical) of
the scrolled window. You can use the set_value method of the adjustment
to change what the scrolled window shows. Both the scrollbar and scrolled
window contents listen for changes to the adjustment (in fact, the
scrollbar works by changing the value of the adjustment when you use it).
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk