PHP-GTK: Scrolled Window whoes
- From: Sérgio Santos <ssantos netlandia pt>
- To: <gtk-list gnome org>
- Subject: PHP-GTK: Scrolled Window whoes
- Date: Wed, 3 Oct 2001 02:47:08 +0100
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());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]