I have an application which main window has a MenuBar.
This MenuBar has many MenuItems. Each one has many subMenuItems as well, except one (let’s call it SpecialMenuItem) that has no subMenuItems.
Each subMenuItem has its own menuHandler method where I can write the code that is executed when I click this subMenuItem.
I can do the same with the SpecialMenuItem, but not with the other MenuItems. The application never goes to that handlers.
My question is:
Is it possible to execute code when I click a MenuItem that has subMenuItems?
Thanks for any help.