Subclassed MenuItem

I need help using the class MenuItem to be able to obtain the Action and MenuEnable events from MenuItems. These events do not seem available through the regular Menu Editor.

I have inserted a class and made its super MenuItem. It does get the icon of a menuItem, and I was able to add it to MainMenuBar with

MainMenuBar.append(New CMenu("ANewMenu"))

Now, how do I put elements in that menu ? I tried ANewMenu.append to no avail.

TIA

No need to create a subclassed menu item in code. Just change the super class in the menu editor.

Oh. I see now. So simple. Thank you Eli.