<?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::<div style="padding:6 0 0 16"><b>handleContextMenu</b>(<i>unit</i>, <i>board</i>, <i>element</i>, <i>pos</i>, <i>command</i>) &rarr; Boolean</div>"><Param name="unit" type="core.gml2:Unit!" typeRef="<q ref="core.gml2:Unit">Unit</q>">The unit classifier.</Param><Param name="board" type="core.dev:IBoard!" typeRef="<q ref="core.dev:IBoard">IBoard</q>">The board classifier.</Param><Param name="element" type="core.gml:GmlObject!" typeRef="<q ref="core.gml:GmlObject">GmlObject</q>">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><h2>Dependencies</h2><table class="WHITE" style="width:auto; margin-top:0" cellspacing="1"><tr><td class="H V"><i>pre-condition:</i> </td><td class=H><q ref="core.gml2:defineContextMenu">defineContextMenu</q> != null </td></tr></table> <h2>Behavior</h2> The rule is invoked with both the classifying parameters that were used for defining the context menu (see <q ref="core.gml2:defineContextMenu">defineContextMenu</q>) 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 <q ref="core.lib:Global!SIGNAL">SIGNAL</q> 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>