Re: GtkList, GtkViewport, and scrolling with keyboard
| From: | Steph | Date: | Sat, 08 Mar 2003 05:09:59 +0000 |
| Subject: | Re: GtkList, GtkViewport, and scrolling with keyboard | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3082@lists.php.net to get a copy of this message | ||
- or you could just look at gtk.php in the test directory ..
----- Original Message -----
From: "Pablo Dall'Oglio" <pablo@univates.br>
To: <bens@effortlessis.com>
Cc: <php-gtk-general@lists.php.net>
Sent: Friday, March 07, 2003 10:33 PM
Subject: Re: [PHP-GTK] GtkList, GtkViewport, and scrolling with keyboard
> $s = new GtkScrolledWindow;
> $p = new GtkViewport;
> $s->add($p);
>
> $Form = new GtkHBox(false);
> $Form->pack_start($Column1);
> $Form->pack_start($Column2);
>
> $p->add($Form);
>
> .... where $Column1 and $Column2 are VBox'es with many Entries...
>
> Pablo
>
>
> On Fri, 7 Mar 2003 14:17:23 -0800
> Benjamin Smith <bens@effortlessis.com> wrote:
> > I'm having trouble getting a gtklist to scroll properly inside a
gtkViewPort.
> > How is this done?
> >
> > More information: I have code something like:
> >
> > // MAKES A SEQUENTIAL ARRAY OF GtkListItem() entries.
> > $items=MakeGtkItems();
> >
> > $list=&New GtkList();
> > $list->Show();
> > $list->append_items($items);
> >
> > $scroll=&New GtkScrolledWindow();
> > $scroll->Add_With_Viewport($list);
> > $scroll->Show();
> >
> > ... etc.
> >
> > The list shows up fine, but if I use the arrow keys to roll down the
list, it
> > goes on down below the window and the window does not scroll. How do
I make
> > it scroll? The manual indicates it's possible without saying how to
do it!
> >
> > http://gtk.php.net/manual/en/gtk.gtkviewport.php
> >
> > "The exception that proves this rule is GtkList, which is set up so
that it
> > can be made to be scrollable via the keyboard if it is added to a
> > GtkViewport."
> >
> > -Ben
> >
> > --
> > PHP-GTK General Mailing List (http://gtk.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> :: Pablo Dall'Oglio (pablo@php.net)
> :: Univates - IT Department +55 (51) 3714-7040
> :: Linux User n. 223253, Lajeado, RS - Brasil
> :: "Life's a Journey, Not a Destination" - Steven Tyler
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>