SOLVED: PHP-GTK: Scrolled Window whoes

Well, I was really going in cicles.

What I did was remove the focus_vadjustment from $box2 (the viewport for
scrolled_window) and used it in the table containing the buttons / Entry
boxes(that is then packed into $box2). 
What happens is:

If I type a value into one box and then go down (pressing down arrow)
when it reaches the last seen item, it scrolls automaticly, and also if
I  scroll down/up and click on an item, it works as expected. 
Without any set_focus_vadjustment, it works ok when scrolling, but it
won't auto-scroll if I get past the last visible item.


-----Original Message-----


I?m having trouble with scrolled windows, I have an application that
uses two scrolled windows, one with a table with GtkEntry boxes and
another with a table with GtkButton, (Listed Vertically).

When I scroll down and press one of the buttons (or entry boxes) the
window automaticly scrolls up again. I though that assigning vadjustment
would solve my problem, but it doesn?t.

What property am I missing? Must I set vadjument for the table? For the
buttons/entry boxes ? Please help, I?m a bit confused here.

The code is like this:
$scrolled_window = &new GtkScrolledWindow();
$box2 = &new GtKVBox(false,2);

gtk-list mailing list
gtk-list gnome org

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