[MonoDevelop] Extending stetic menus
Mike Kestner
mkestner at gmail.com
Mon Sep 29 10:44:17 EDT 2008
On Mon, 2008-09-29 at 12:11 +0200, Paul Lange wrote:
> Hi all,
>
> I have an application with a menu bar created with stetic. Now I want to
> extent this basic menu with new items at run time.
> I haven't found a way to extend the stetic generated menus yet.
If you are using trunk, the Gtk.UIManager is now exposed by the
designer. You can either use it to get a specific menu object by path:
UIManager.GetWidget ("/menubar/filemenu");
or you can use the UIManager API to add new actions and insert new menu
items directly.
If you are using 1.0, the UIManager is not exposed, so you will have to
manually navigate through the menu hierarchy using Gtk.Menu and MenuItem
from the menubar.
--
Mike Kestner <mkestner at gmail.com>
More information about the Monodevelop-list
mailing list