Control of context menus with in-code comments

Could anyone give me (or point me in the direction of) some details on how ROOT uses the various comments in code like *MENU and *OPTIONS to implement context menus? For example I’ve seen in some code the use of a “Heirarchy” option for *MENU, but I can’t find any documentation about it anywhere. If no such documentation exists, could somebody point me in the direction of the code that parses the files and produces the menu and I’ll try to work it out myself.



Hi Hugh,

Sorry, that’s true it is not well documented (yet) :blush: . But we are working on improving the documentation now :slight_smile:
In the meanwhile, you can take a look at TRootContextMenu GUI class: