RE: [PHP-GTK] GtkCombo
| From: | Leroy 'Beau' Hall | Date: | Mon, 14 May 2001 20:03:29 +0000 |
| Subject: | RE: [PHP-GTK] GtkCombo | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1842@lists.php.net to get a copy of this message | ||
Thanks for the help...
Beau
> -----Original Message-----
> From: Andrei Zmievski [SMTP:andrei@ispi.net]
> Sent: Monday, May 14, 2001 2:02 PM
> To: Steph
> Cc: php-gtk@lists.php.net
> Subject: Re: [PHP-GTK] GtkCombo
>
> 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.
>
> --
> PHP GTK Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net
> For additional commands, e-mail: php-gtk-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net