Re: GtkMenu

From: Date: Fri, 28 Dec 2001 21:37:37 +0000
Subject: Re: GtkMenu
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-939@lists.php.net to get a copy of this message
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.

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