Hi all
This is probably a really easy question, and i can solve it using APIs but i hope for a simplier way.

Normally when creating new menu items you can make an array then load new menu items as you need. Now what i need to do is add submenus to menus. I'm adding plugins to one of the programs, and so i create a new menuitem for the plugin. But i'd also like to create submenu items for the menu item.

Plugins
...Plugin1
......item 1 < Loaded (no problems)
......item 2 < Loaded (no problems)
...Plugin2 < Loaded (no problems)
......item 1 < Loaded (problem)

So simply. How do i set the parent of a menu item

Thanks