<?xml version="1.0" encoding="Windows-1255" ?><Rule name="handleContextMenu" modifier="transactive" scope="public" sortGroup="true" id="core.gml2:handleContextMenu" sort="27" urn="core.gml2:rules.editing.handleContextMenu.xml" toc="\Rules\Editing rules"><Summary>Handles a context menu command.</Summary><Parameters signature="transactive rule::&lt;div style=&quot;padding:6 0 0 16&quot;&gt;&lt;b&gt;handleContextMenu&lt;/b&gt;(&lt;i&gt;unit&lt;/i&gt;, &lt;i&gt;board&lt;/i&gt;, &lt;i&gt;element&lt;/i&gt;, &lt;i&gt;pos&lt;/i&gt;, &lt;i&gt;command&lt;/i&gt;) &amp;rarr; Boolean&lt;/div&gt;"><Param name="unit" type="core.gml2:Unit!" typeRef="&lt;q ref=&quot;core.gml2:Unit&quot;&gt;Unit&lt;/q&gt;">The unit classifier.</Param><Param name="board" type="core.dev:IBoard!" typeRef="&lt;q ref=&quot;core.dev:IBoard&quot;&gt;IBoard&lt;/q&gt;">The board classifier.</Param><Param name="element" type="core.gml:GmlObject!" typeRef="&lt;q ref=&quot;core.gml:GmlObject&quot;&gt;GmlObject&lt;/q&gt;">The element classifier. This is the element instance on which the menu command was invoked.</Param><Param name="pos" type="Point">The context menu position.</Param><Param name="command" type="String">The dangling menu command.</Param></Parameters><Classifiers><Classifier name="unit" type="gml2:Unit" expr="unit"></Classifier><Classifier name="board" type="dev:IBoard" expr="board"></Classifier><Classifier name="element" type="GmlObject" expr="element"></Classifier></Classifiers><Return type="Boolean">Returns the rule's success/failure status.</Return><Remarks>&lt;h2&gt;Dependencies&lt;/h2&gt;&lt;table class=&quot;WHITE&quot; style=&quot;width:auto; margin-top:0&quot; cellspacing=&quot;1&quot;&gt;&lt;tr&gt;&lt;td class=&quot;H V&quot;&gt;&lt;i&gt;pre-condition:&lt;/i&gt; &lt;/td&gt;&lt;td class=H&gt;&lt;q ref=&quot;core.gml2:defineContextMenu&quot;&gt;defineContextMenu&lt;/q&gt; != null &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
		&lt;h2&gt;Behavior&lt;/h2&gt;
		The rule is invoked with both the classifying parameters that were used for defining the context menu
		(see &lt;q ref=&quot;core.gml2:defineContextMenu&quot;&gt;defineContextMenu&lt;/q&gt;) as well as the menu command selected by the user.
		The default behavior is to execute the selected command as a standard command signal (see &lt;q ref=&quot;core.lib:Global!SIGNAL&quot;&gt;SIGNAL&lt;/q&gt; macro).
		The behavior can be extended to support custom commands that depend also on the classifying parameters.</Remarks><Copyright>(c) SAP AG 2003-2006. All rights reserved.</Copyright>
<Topics>
</Topics>
</Rule>