ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-gtk-general
php-gtk-general
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved