I'm not talking about having menu with dynamic entries, but registering/unregistering menus.
Declaring statically a menu this way works:
CODE
class contextmenu : public contextmenu_item_simple {
...
};
static contextmenu_item_factory_t<contextmenu> contextmenu_factory;
I'd like to be able to do the last line dynamically so I tried:
CODE
service_ptr_t<contextmenu > menu =
new service_impl_single_t<contextmenu >();
This does not work, the menu interface (get_item_count(), etc) is never called
Any idea if this is possible ? Can there be several root context menu per plugin ?
