Re: GtkMenu

From: Date: Fri, 28 Dec 2001 22:16:52 +0000
Subject: Re: GtkMenu
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-940@lists.php.net to get a copy of this message
If you're doing that, wouldn't you be better off using a GtkCTree? (sample in test/gtk.php) ----- Original Message ----- From: "Anson Rinesmith" <anson@lddcorp.com> To: "Steph" <steph.fox@btinternet.com>; "PHP GTK GENERAL" <php-gtk-general@lists.php.net> Sent: Friday, December 28, 2001 9:37 PM Subject: Re: [PHP-GTK] GtkMenu > Okay, I hated the button, so I used Stephs Idea from the mailing list > > // Box For Data Entry > $box1_1 = &new GtkHBox(0,false); > $frame2->add($box1_1); > // Data Menu's and Entry's > $bmenu_action = &new GtkMenuBar(); > $action = &new GtkMenu(); > $action_m = &new GtkMenuItem("Action"); > $bmenu_action->append($action_m); > $action_i1 = &new GtkMenuItem("Allow"); > $action_i2 = &new GtkMenuItem("Deny"); > $action->append($action_i1); > $action->append($action_i2); > $action_m->set_submenu($action); > > Now I've got a nice drop down menu, with a title, and 2 drop down options. > I have multiples of these, I want the user to be able to select options, > then hit a "submit" type > button. I want to be able to capture the selected Items. So I'll be using > the clicked signal > of the button. I'm guessing I'll have to do a get_active on each signal for > each menu > but that seems a bit obtuse. > SUMMARY: To get selected option from multiple menu's at a button click. > > > > -- > 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 >

« previous php.gtk.general (#940) next »