Re: building a menu
| From: | Hakan Kuecuekyilmaz | Date: | Wed, 28 Nov 2001 01:05:19 +0000 |
| Subject: | Re: building a menu | ||
| References: | 1 2 3 4 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-716@lists.php.net to get a copy of this message | ||
thanks, this works!
well I only found select, deselect and toggle, anyway the best resource to learn
is the documentation *and* the samples.
I would suggest to put one menubar into the test section.
Quoting Steph <Steph.Fox@btinternet.com>:
> 'activate' instead of 'toggle' for GtkMenuItem is correct .. I'm still
> trying to figure out how to explain this one for the docs.
>
> At present your best best is still testing within PHP-GTK or reading
> through the GTK source. You can (in GtkMenuItem) use 'toggle', but only
> as as user-defined function/signal pair.
>
> (nb this isn't going to change in GTK 2.0 either.)
>
>
> ----- Original Message -----
> From: "Hakan Kuecuekyilmaz" <hakan@lisas.de>
> To: <php-gtk-general@lists.php.net>
> Sent: Tuesday, November 27, 2001 10:31 PM
> Subject: [PHP-GTK] building a menu
>
>
> > Hello,
> >
> > after my 'fantastic' installation orgy (thanks to all, again) now a
> 'real'
> > question on php-gtk.
> > I build a menu, but i don't know how to connect the items to
> mouseclicks;
> > like:
> > $connect =& new GtkMenuItem('Connect');
> > // signal 'select' onmouseover; 'deselect' whenmousewasover
> > // wich signal we have when clicking?
> > $connect->connect('toggle', 'connect');
> >
> > well, toggle is wrong, too
> >
> > then i make
> > $file =& new GtkMenu();
> > $file->append($connect);
> >
> > $item =& new GtkMenuItem('File');
> > $item->set_submenu($file);
> > $item->activate();
> >
> >
> > is this right so far?
> >
> >
> > regards
> > --
> > Hakan Kuecuekyilmaz, presently intern at
> > Tecnomatix Technologies Germany | Tel: +49 711 1389- 257
> > Mittlerer Pfad 9 | <hakan@lisas.de>
> > 70 499 Stuttgart | <hkuecuekyilmaz@tecnomatix.de>
> > Studenten, Absolventen und Young Professionals
> > <http://www.c-cn.de>
> >
> >
> >
> > -------------------------------------------------
> > This mail sent through IMP: webmail.fht-esslingen.de
> >
> > --
> > PHP-GTK General Mailing List (http://gtk.php.net/)
> > To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-gtk-general-help@lists.php.net
> > To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
> >
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-gtk-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
--
Hakan Kuecuekyilmaz, presently intern at
Tecnomatix Technologies Germany | Tel: +49 711 1389- 257
Mittlerer Pfad 9 | <hakan@lisas.de>
70 499 Stuttgart | <hkuecuekyilmaz@tecnomatix.de>
Studenten, Absolventen und Young Professionals <http://www.c-cn.de>
-------------------------------------------------
This mail sent through IMP: webmail.fht-esslingen.de