SOLVED: PHP-GTK: Scrolled Window whoes
- From: Sérgio Santos <ssantos netlandia pt>
- To: <gtk-list gnome org>
- Subject: SOLVED: PHP-GTK: Scrolled Window whoes
- Date: Wed, 3 Oct 2001 07:31:41 +0100
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.
Sergio
-----Original Message-----
Hi,
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();
$scrolled_window->set_border_width(5);
$scrolled_window->set_policy(GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
$box1->pack_start($scrolled_window);
$box2 = &new GtKVBox(false,2);
$box2->set_border_width(5);
$scrolled_window->add_with_viewport($box2);
$box2->set_focus_vadjustment($scrolled_window->get_vadjustment());
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]