Fw: [PHP-GTK] getting the index of selected item in a combo box

From: Date: Wed, 08 May 2002 13:37:53 +0000
Subject: Fw: [PHP-GTK] getting the index of selected item in a combo box
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1938@lists.php.net to get a copy of this message
oops .. it needs to be run from a select-child signal by the looks of it. function callback($child) { $index = $list->child_position($child); } either that or you could use $list->selection[0] to retrieve the child so long as you're in single selection mode. ----- Original Message ----- From: "Steph" <sfox@php.net> To: "Henning Sprang" <henning@sprang.de>; "PHP-GTK gen" <php-gtk-general@lists.php.net> Sent: Wednesday, May 08, 2002 2:28 PM Subject: Re: [PHP-GTK] getting the index of selected item in a combo box $index = $list->child_position(); ? ----- Original Message ----- From: "Henning Sprang" <henning@sprang.de> To: <php-gtk-general@lists.php.net> Sent: Wednesday, May 08, 2002 2:13 PM Subject: [PHP-GTK] getting the index of selected item in a combo box > hy, > i didn't find this one in the manual, is there a way to get the index of the > currently selected item in a combobox? > > > > tia, > henning > > > > -- > Henning Sprang, henning@sprang.de, http://www.sprang.de/ > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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