Anyone know how to add event handlers to a Menu on the MenuBar component.
I know how to do it on MenuItems but I also want to be able to do it on the root Menu…
for example
File - root menu
Edit - menuItem
Cut - menuItem
Copy - menuItem
I want to assign an event handler to “File” but I can’t see a way of doing it. On menuItem’s you assign them an instance name so that’s easy but you can’t do that to the root Menu… any ideas?