[PHP-GTK] GtkComboBox
by Breizh Micro Services other posts by this author
Feb 21 2006 3:06AM messages near this date
RE: [PHP-GTK] GtkListStore and Sql tables
|
Re: [PHP-GTK] GtkComboBox
Hi,
I am trying this code :
$window = new GtkWindow('GTK_WINDOW_TOPLEVEL');
$window-> set_position('GTK_WIN_POS_CENTER');
$window-> connect_simple('destroy', array('gtk', 'main_quit'));
$window-> set_size_request(800,600);
$combo_data = array ( array(
"combo1"),array("combo2"),array("combo3"),array("combo4"));
$combo = new GtkComboBox();
$store = new GtkListStore("Gtk::TYPE_STRING");
$combo-> set_model($store);
foreach ($combo_data as $value){
$store-> append(array($value));
}
$window-> add($combo);
$window-> show_all();
Gtk::main();
It seems to work but the text into the combobox is invisible ! I have
the right number of row displayed but nothing readable ! What's wrong
with my code ?
Thanks,
Breizh.
--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Breizh Micro Services
Christian Weiske
Breizh Micro Services
Christian Weiske
Breizh Micro Services
|