GtkMenu
| From: | (Anson Rinesmith) | Date: | Fri, 28 Dec 2001 15:44:24 +0000 |
| Subject: | GtkMenu | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-936@lists.php.net to get a copy of this message | ||
Using the same code
$omenu_action = &new GtkOptionMenu();
$omenu_action->set_usize(50,25);
$menu_action = &new GtkMenu();
$action_i1 = &new GtkMenuItem("Allow");
$action_i2 = &new GtkMenuItem("Deny");
$menu_action->append($action_i1);
$menu_action->append($action_i2);
$omenu_action->set_menu($menu_action);
$box1_2->pack_start($omenu_action,false);
If I pass $menu_action to a function, how do I get the string "Allow" or "Deny"
back?
I use get_active() I just get back the MenuItem.