Glade Help
| From: | Guilherme Ramos | Date: | Sun, 06 Jan 2002 21:23:18 +0000 |
| Subject: | Glade Help | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-964@lists.php.net to get a copy of this message | ||
Hello... I'm new to php-gtk and to this mailling list.
I just started using galde, and it is wonderfull.
Save me a lot of time building the GUI (fixed region is the best thing).
But I have a problem.. I can't make a combo box receive it values from a variable.
--------------------------------------------------------------------------------
$gx = &new GladeXML('e:\web\php4\glade\teste.glade');
$entry_box = $gx -> get_widget('entry1');
$entry_box -> set_text("Hello WORLD");
$combo_box1 = $gx -> get_widget('combo1');
$strings[] = "item0";
$strings[] = "item0 item1";
$strings[] = "item0 item1 item2";
$strings[] = "item0 item1 item2";
$strings[] = "item0 item1";
$strings[] = "item0";
$combo_box1 -> set_popdown_strings($strings);
$gx -> signal_autoconnect();
--------------------------------------------------------------------------------
The $entry_box works fine with the set_text..
BUT when I try to use the set_popdown_strings in the combo, it doesn't work (undefined
function)!!
This function should work right? It works with normal gtk gui building.
If I use set_text in the $combo_box1 it works... so it's no widget name problem.
Any clues why?!
Thanks for your help!
- Guilherme Ramos.