insert_menu_item


Description:

public void insert_menu_item (MenuItem new_item, MenuItem existing_item)

Inserts a menu item before an existing menu item.

If the new menu item is already in another menu, it will be removed from that menu before being added to this menu.

Parameters:

new_item

The menu item to add.

existing_item

The existing menu item that the new menu item will be inserted before.