GtkList, GtkViewport, and scrolling with keyboard

From: Date: Fri, 07 Mar 2003 22:17:23 +0000
Subject: GtkList, GtkViewport, and scrolling with keyboard
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3078@lists.php.net to get a copy of this message
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

« previous php.gtk.general (#3078) next »