GtkCombo
| From: | Eduardo Godoy Vega | Date: | Wed, 12 Sep 2001 19:26:39 +0000 |
| Subject: | GtkCombo | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-84@lists.php.net to get a copy of this message | ||
Hi... (I'm new at GTK :-) )
I have this code
$cb = &new GtkCombo();
$cb->set_popdown_strings($strings);
$cb_entry = $cb->entry;
$cb_entry->set_text('Seleccione Cliente');
$cb_entry->select_region(0, -1);
$box2->pack_start($cb);
$cb->show();
how to know the value that is current selected ?
I want to pass this value as a parameter to a function ...
so I try to create a buttom
$button1 = &new GtkButton('Enviar');
$button1->connect('clicked', 'sendmail',$cb->entry->get_text);
$box2->pack_start($button1);
$button1->set_flags(GTK_CAN_DEFAULT);
$button1->grab_default();
$button1->show();
and the function is:
function sendmail($empresa){
... something here ...
}
What's wrong ?
Eduardo.