Sorry,
Was playing around so code first given was not correct
void setWindowChoices()
{
foreach(DockItem di in df.GetItems())
{
MenuItem mnuitm =
(MenuItem)WindowsAction.CreateMenuItem();
mnuitm.Name = di.Label;
mnuitm.Visible = true;
mnuitm.Sensitive = (di.Status ==
DockItemStatus.Dockable);
}
}
I assumed that CreateMenuItem added a sub menu item to the Action but I cant
get it to work.
Alan
--
View this message in context:
http://n4.nabble.com/Help-with-dynamically-adding-to-a-Menu-what-am-I-doing-wrong-tp1565136p1565159.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
_______________________________________________
Gtk-sharp-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list