<contextmenu>

  XML_API > CAD XML API Reference > XML Reference Extension > Instructions >

<contextmenu>

Previous pageReturn to chapter overviewNext page

The element defines ContextMenu command that creates custom menu items.

 

Syntax:

<contextmenu mode="">
  <item caption=""/>   
</contextmenu>

 

 

Attributes of <contextmenu />

Attribute

Description

mode

Specifies a position of newly created items relative to the standard menu.

If set to 0, the newly created items will replace the standard menu.

If set to 1, the newly created items will be added to the top of the standard menu.

If set to 2, the newly created items will be added to the bottom of the standard menu.

 

 

Example:

<?xml version="1.0" encoding="UTF-8"?>
<cadsofttools version="2.0">
  <contextmenu mode="0">
    <item caption="Menu item 1"/>
    <item caption="Menu item 2"/>
    <item caption="Menu item 3"/>
  </contextmenu>
</cadsofttools>

Go to ABViewer