<?xml version="1.0" encoding="Windows-1255" ?><Rule name="defineSelectionMenu" modifier="additive" declarative="Yes" scope="public" sortGroup="true" id="core.gml2:defineSelectionMenu" sort="27" urn="core.gml2:rules.editing.defineSelectionMenu.xml" toc="\Rules\Editing rules"><Summary>Defines the context menu for a given selection box.</Summary><Parameters signature="additive rule::&lt;div style=&quot;padding:6 0 0 16&quot;&gt;&lt;b&gt;defineSelectionMenu&lt;/b&gt;(&lt;i&gt;unit&lt;/i&gt;, &lt;i&gt;board&lt;/i&gt;, &lt;i&gt;elements&lt;/i&gt;, &lt;i&gt;box&lt;/i&gt;, &lt;i&gt;pos&lt;/i&gt;) &amp;rarr; &lt;q ref=&quot;core.env:KitMenubars!MENU_BAR&quot;&gt;MENU_BAR&lt;/q&gt;&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="elements" type="core.gml:GmlObject![id]" typeRef="&lt;q ref=&quot;core.gml:GmlObject&quot;&gt;GmlObject&lt;/q&gt;[id]">The collection of elements enclosed in the selection box.</Param><Param name="box" type="Rectangle">The selection box coordinates.</Param><Param name="pos" type="Point">The selection menu position.</Param></Parameters><Classifiers><Classifier name="unit" type="gml2:Unit" expr="unit"></Classifier><Classifier name="board" type="dev:IBoard" expr="board"></Classifier></Classifiers><Return type="env:KitMenubars!MENU_BAR" typeRef="&lt;q ref=&quot;core.env:KitMenubars!MENU_BAR&quot;&gt;MENU_BAR&lt;/q&gt;">Returns the selection menu for the specified selection box.</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;post-action:&lt;/i&gt; &lt;/td&gt;&lt;td class=H&gt;&lt;q ref=&quot;core.gml2:handleSelectionMenu&quot;&gt;handleSelectionMenu&lt;/q&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
		&lt;h2&gt;Behavior&lt;/h2&gt;
		The behavior defines the context menu to display when the user right-drags the selection rubber-band.
		The menu is defined declaratively using the standard &lt;q ref=&quot;core.gml2:MenuRulesSyntax&quot;&gt;menus syntax&lt;/q&gt;.
		The commands triggered by this menu are handled by the &lt;q ref=&quot;core.gml2:doSelectionMenuCommand&quot;&gt;doSelectionMenuCommand&lt;/q&gt; rule.</Remarks><Copyright>(c) SAP AG 2003-2006. All rights reserved.</Copyright>
<Topics>
</Topics>
</Rule>