Re: clist

From: Date: Mon, 10 Jun 2002 15:00:07 +0000
Subject: Re: clist
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2114@lists.php.net to get a copy of this message
Sorry, don't understand what you saying there.....you can access the currect selection through selection[0], or if you like you can register for the 'select-row' event. That will also give you the selected row. --rdp On 10 Jun 2002, dragon wrote: > No "selection" in php-gtk :( > > On Mon, 2002-06-10 at 14:52, Rich Payne wrote: > > On 10 Jun 2002, dragon wrote: > > > > > Hi > > > > > > How can I delete a selected row form a clist? > > > How can I get the row > > > number and how can I delete this row? > > > > You delete it with a call the $clist->remove($row_number). As for getting > > the row number, use $clist->selection[0]. That's assuming you're only > > allowing one row to be selected at a time (simple selection I think). > > > > --rdp > > > > -- > > Rich Payne > > http://talisman.mv.com > > > > > > -- > > PHP-GTK General Mailing List (http://gtk.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- Rich Payne http://talisman.mv.com

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