darrenan
March 29th, 2022, 16:18
I have a nested (item in a list) windowclass that wants to redefine the set of radial menu items defined by a containing windowclass (window containing the list). I have tried adding resetMenuItems() to this windowclass's onInit() prior to registering new menu items, but I'm still seeing the menu items defined by the containing windowclass.
Note that I am able to modify existing menu items, but what I really want is to have superfluous menu items removed. This is what I was hoping resetMenuItems() would do. But I'm guessing that resetMenuItems() only applies to menu items added by the same windowclass?
Is there a way to get around this menu layering behavior?
EDIT: Seems like an "unregisterMenuItem(nPos)" API might be useful?
Note that I am able to modify existing menu items, but what I really want is to have superfluous menu items removed. This is what I was hoping resetMenuItems() would do. But I'm guessing that resetMenuItems() only applies to menu items added by the same windowclass?
Is there a way to get around this menu layering behavior?
EDIT: Seems like an "unregisterMenuItem(nPos)" API might be useful?