Re: GtkCombo
| From: | Andrei Zmievski | Date: | Mon, 14 May 2001 19:02:13 +0000 |
| Subject: | Re: GtkCombo | ||
| References: | 1 2 3 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1840@lists.php.net to get a copy of this message | ||
On Mon, 14 May 2001, Steph wrote:
> function quitApplication() {
> Gtk::main_quit();
> }
>
> $window = &new GtkWindow();
> $window->set_title("testbay window");
> $window->set_default_size(320, 200);
> $window->set_uposition(0, 0);
> $window->connect('delete_event', 'quitApplication');
>
> $combo = &new GtkCombo();
> $item1 = &new GtkListItem('one');
$item1->show();
> $item2 = &new GtkListItem('two');
$item2->show();
> $item3 = &new GtkListItem('three');
$item3->show();
> $array = array($item1, $item2, $item3);
> $list = $combo->list;
> $list->append_items($array);
> $window->add($combo);
> $combo->show();
>
> $window->show_all();
>
> Gtk::main();
That's it.
-Andrei
We all have photographic memories, it's just
that some of us don't have any film.