EditLive! 9 Documentation : menu (plugin)

Defining a <menu> element in your plugin XML will create a new menu in EditLive! called Plugins. Any <menuItem> or <customMenuItem> children elements nested in these <menu> elements will appear under this Plugins menu item.

If you are specifying multiple instances of plugin XML (using several calls to the AddPlugin or AddPluginAsText load-time properties or several instances of <plugin> nested within the Configuration File's <Plugins> element), any <menuItem> or <customMenuItem> elements nested in <menu> elements will appear under the one Plugins menu in EditLive!. 

Example
An instance of EditLive! uses the following load time properties:

...
editlive.addPlugin("myPlugin1.xml");
editlive.addPlugin("myPlugin2.xml");
...

File myPlugin1.xml contains the following elements:

...
<menu>
   <customMenuItem name="myPlugin1" action="raiseEvent" value="myPlugin1" text="Plugin 1" />
</menu>
...

File myPlugin2.xml contains the following elements:

...
<menu>
   <customMenuItem name="myPlugin2" action="raiseEvent" value="myPlugin2" text="Plugin 2" />
</menu>
...

This will create a Plugins menu in EditLive! that features a menu item called Plugin 1 and a menu item called Plugin 2.

If you have already specified a menu called Plugins in your EditLive! Configuration File the Plug-in architecture will create another Plugins menu.

<plugin>
<menu>

<plugin>
   ...
   <menu>
      ...
   </menu>
</plugin>

The <menu> plug-in XML element can have the exact same children as an EditLive! <menu> Configuration File Element.

See Also

  • <menu> Configuration File Element