Moveto in Clist?

From: Date: Wed, 15 Jun 2005 17:39:23 +0000
Subject: Moveto in Clist?
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5875@lists.php.net to get a copy of this message
I'm trying to make clist "jump" to a specific row/col that has to be scrolled to to get to. I'm running the latest PHP-GTK for PHP 4.x, with PHP 4.3.11 executables on MS Windows. Here's a demonstration of what I'm trying - what am I doing wrong? No errors seem to be reported anywhere that I can find. // CREATE THE CLIST WIDGET $s['clist']=&New GtkClist(1, array('snork')); // POPULATE THE WIDGET for($i=0; $i<1000; $i++) $s['clist']->Append(array($i)); // PUT IT IN A SCROLLED WINDOW... $scrolled=&New GtkScrolledWindow(); $scrolled->Add_With_ViewPort($s['clist']); // PUT THE WINDOW IN A SCREEN. $win=&New GtkWindow(); $win->Add($scrolled); $win->Set_Usize(500, 500); $win->Show_All(); // EVERYTHING LOOKS FINE TO HERE... // NOW, TO MAKE IT "JUMP"... BUT IT DOESN'T SEEM TO DO ANYTHING $s['clist']->MoveTo(99, -1, 0.5, 0.5); -Ben -- "The best way to predict the future is to invent it." - XEROX PARC slogan, circa 1978

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