Re: gtk read result of combobox

From: Date: Mon, 18 Sep 2006 14:34:58 +0000
Subject: Re: gtk read result of combobox
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7251@lists.php.net to get a copy of this message
Hi Christian, Christian Weiske wrote: > >> Submit (a Button) the value of the selected Item should be proceed. But >> how >> the hell do I get this selected Item. The Documentation of combobox just >> list the following functions: >> Methods >> set_*() > > First, you can only retrieve the index number, not the key you set in > the array. > Ok, The indexnumber will work as well. I need just something from the selected Item. Christian Weiske wrote: > > Second, to retrieve the key, you need a get_* method, not a > set_*() one. > Yes, thats clear. But the documentation just list the set_* methods. My Problem is that I dont know, where I have to get the information from. When I just had a Object where I should start or can play and try with would be enough. But this important piece is missing. If I try to get some output of the GtkCombo Object function start() { global $customer; print_r($customer); } I get the following.... GtkCombo Object ( [0] => 8 ) Regardless which entry I selected in the combobox. It's always [0] => 8. So this is the wrong approach. But the documentation about the combobox is a kind of rare I would describe it... So where to start? Cheers -- jerik -- View this message in context: http://www.nabble.com/gtk-read-result-of-combobox-tf2290752.html#a6364949 Sent from the Php - GTK - General mailing list archive at Nabble.com.

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