I have a PopupMenu with submenus and only one item in total shall be checked at a time. GroupIndex and RadioItem properties do not work outside of the respective submenus as far as I have tried.
I have found this piece of code to check a PopupMenu and its direct sub-components but I haven’t had any luck with creating a popup-wide variety of this.
I need a solution that is fast – the PopupMenu has 4×14 entries, always iterating through all menus and subentries can’t be the best solution for this, I suppose.
Is there a simple property for this that I am missing or is the rocky path of iteration my only option?
Add all 56 items as actions to one ActionList and give all
GroupIndexproperties the same value.Now, add menu-items, sub-menu’s and sub-sub-menu’s in any tree-like fashion and link each of them to an action. Checking one menu-item, wherever positioned, will automatically uncheck all others.
Et voilà!