This commit is contained in:
2025-11-23 23:31:18 +08:00
parent d60cdc52fd
commit 9f7667a475
710 changed files with 252869 additions and 6 deletions

View File

@@ -0,0 +1,467 @@
<!DOCTYPE html>
<html>
<head>
<title>MGPickerMenu Command</title>
<meta name="generator" content="Help &amp; Manual" />
<meta name="keywords" content="API,menu,MGPickerMenu command" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
body { margin: 0px; background: #F8F8F8; }
</style>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="helpman_settings.js"></script>
<script type="text/javascript" src="helpman_topicinit.js"></script>
<script type="text/javascript">
HMSyncTOC("index.html", "mgpickermenu.htm");
</script>
<script type="text/javascript" src="highlight.js"></script>
<script type="text/javascript">
$(document).ready(function(){highlight();});
</script>
</head>
<body>
<table style="width:100%; border:none; border-spacing:0px; padding:0px; background:#D0D0D0">
<tr style="vertical-align:middle">
<td style="text-align:right">
<a href="welcome.htm"><img border="0" src="../common/images/MGtoolsHelp_Home.gif" width="34" height="22" alt="Home" /></a>&nbsp;
<a href="mgpickerlink.htm"><img border="0" src="../common/images/MGtoolsHelp_previous.gif" width="34" height="22" alt="Previous" /></a>
<a href="mgpickermenuitem.htm"><img border="0" src="../common/images/MGtoolsHelp_next.gif" width="34" height="22" alt="Next" /></a>
</td>
</tr>
</table>
<!-- Placeholder for topic body. -->
<table style="width:100%;border:none;border-spacing:0px"><tr style="vertical-align:top"><td style="text-align:left;padding:5px">
<div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:middle; height:8px; padding:1px; border:none"><p><span style="font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">command</span><span style="font-family: 'Times New Roman',Times,Georgia,serif;"> (MEL/Python)</span></p>
</td>
</tr>
<tr>
<td style="vertical-align:middle; height:48px; padding:1px; border:none"><h1 class="p_Heading1" style="margin: 19px 0 19px 0;"><span class="f_Heading1" style="font-size: 24pt; font-family: 'Times New Roman',Times,Georgia,serif;">MGPickerMenu</span></h1>
</td>
</tr>
</table>
</div>
<p class="p_Normal" style="margin: 14px 0 0 0;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Go to: <a href="mgpickermenu.htm#synopsis" class="topiclink">Synopsis</a>. <a href="mgpickermenu.htm#examples" class="topiclink">MEL examples</a>. <a href="mgpickermenu.htm#pyexamples" class="topiclink">Python examples</a>.</span></p>
<p class="p_Normal" style="margin: 19px 0 0 0;"><a id="synopsis" class="hmanchor"></a> <span style="font-size: 14pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">Synopsis</span></p>
<p class="p_Normal" style="margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">MGPickerMenu (menuIDString, [<a href="mgpickermenu.htm#addmenuitem" class="topiclink">addMenuItem</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">(string, string, string, string, string)</span><span style="font-family: 'Courier New',Courier,monospace;">], [<a href="https://www.helpandmanual.com/order.html" class="topiclink">copyMenu</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">boolean</span><span style="font-family: 'Courier New',Courier,monospace;">], [<a href="mgpickermenu.htm#copypairedmenu" class="topiclink">copyPairedMenu</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">boolean</span><span style="font-family: 'Courier New',Courier,monospace;">], [<a href="https://www.helpandmanual.com/order.html" class="topiclink">deleteAllItems</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">boolean</span><span style="font-family: 'Courier New',Courier,monospace;">], &nbsp;[<a href="mgpickermenu.htm#exist" class="topiclink">exist</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">boolean</span><span style="font-family: 'Courier New',Courier,monospace;">], [<a href="mgpickermenu.htm#itemarray" class="topiclink">itemArray</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">boolean</span><span style="font-family: 'Courier New',Courier,monospace;">], [<a href="mgpickermenu.htm#insertmenuitem" class="topiclink">insertMenuItem</a>=(int, </span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string, string, string, string, string)</span><span style="font-family: 'Courier New',Courier,monospace;">], [<a href="mgpickermenu.htm#mode" class="topiclink">mode</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span><span style="font-family: 'Courier New',Courier,monospace;">], [<a href="mgpickermenu.htm#menuitem" class="topiclink">menuItem</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">int</span><span style="font-family: 'Courier New',Courier,monospace;">], [<a href="mgpickermenu.htm#markingmenu" class="topiclink">markingMenu</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">boolean</span><span style="font-family: 'Courier New',Courier,monospace;">],[<a href="mgpickermenu.htm#numberofitems" class="topiclink">numberOfItems</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">boolean</span><span style="font-family: 'Courier New',Courier,monospace;">],[<a href="mgpickermenu.htm#parent" class="topiclink">parent</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span><span style="font-family: 'Courier New',Courier,monospace;">],[<a href="mgpickermenu.htm#popoutsidebbox" class="topiclink">popOutsideBBox</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">boolean</span><span style="font-family: 'Courier New',Courier,monospace;">], [<a href="mgpickermenu.htm#userightmenu" class="topiclink">useRightMenu</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">boolean</span><span style="font-family: 'Courier New',Courier,monospace;">], [<a href="mgpickermenu.htm#view" class="topiclink">view</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span><span style="font-family: 'Courier New',Courier,monospace;">])</span></p>
<p class="p_Normal" style="margin: 14px 0 14px 0;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">MGPickerMenu is </span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">NOT undoable</span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">, </span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">queryable and editable.</span></p>
<p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">You don't need to create a picker menu, it is already there for each picker item, all you need is to query / edit them.</span></p>
<p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">However, you can still use this command in create mode, which will just retrieve the menu id from the picker item, instead of creating them.</span><br />
<span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">In &quot;create&quot; mode, you should specify -parent and &nbsp;-mode flags, in order to retrieve the menu id.</span><br />
<span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">You always need to specify the picker menu id string to query / edit it. </span></p>
<p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">A picker menu id string is something like:</span></p>
<p><span style="width:48px;display:inline-block">&nbsp;</span><span style="font-family: 'Times New Roman',Times,Georgia,serif;">commandButton1.rightmenu &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//The right click menu for the picker item of id &quot;commandButton1&quot;</span></p>
<p><span style="width:48px;display:inline-block">&nbsp;</span><span style="font-family: 'Times New Roman',Times,Georgia,serif;">selectButton1.leftmenu &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//The left click menu for the picker item of id &quot;selectButton1&quot;</span></p>
<p><span style="color: #000000;">&nbsp;</span></p>
<p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">In edit / create mode, the flags that are meant to be used for editing will exclude each other, it will just execute one flag and return.</span></p>
<p><span style="color: #000000;">&nbsp;</span></p>
<p class="p_Normal">&nbsp;</p>
<div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:bottom; background-color:#CCCCCC; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">Long name (short name)</span></p>
</td>
<td style="vertical-align:bottom; background-color:#CCCCCC; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic; font-weight: bold;">Argument types</span></p>
</td>
<td style="vertical-align:bottom; background-color:#CCCCCC; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">Properties</span></p>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="addmenuitem" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-addMenuItem</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-ami</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string string string script string</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="create" title="create" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="create.gif"/><img alt="edit" title="edit" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="edit.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">This is a edit only flag that can be used to add a menu item to picker menu.</span></p>
<p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Specify label, icon path, command type (&quot;mel&quot; or &quot;python&quot;), command and the radial position for marking menu position (&quot;N&quot;, &quot;NW&quot;, &quot;W&quot;, &quot;SW&quot;, &quot;S&quot;, &quot;SE&quot;, &quot;E&quot; or &quot;NE&quot;).</span></p>
<p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">* Keep in mind that, if this flag is used in create mode, it will still return the added menu item id instead of the menu id.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="copymenu" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-copyMenu</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-cm</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="create" title="create" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="create.gif"/><img alt="edit" title="edit" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="edit.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">This is a edit only flag that can be used to copy menu data from other menu.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="copypairedmenu" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-copyPairedMenu</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-cpm</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><br />
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="create" title="create" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="create.gif"/><img alt="edit" title="edit" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="edit.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">This is a edit only flag that can be used to copy menu data from paired menu. eg. Left click menu copy data from right click menu, right click menu copy data from left click menu.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="deleteallitems" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-deleteAllItems</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-dai</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><br />
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="create" title="create" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="create.gif"/><img alt="edit" title="edit" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="edit.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">This is a edit only flag, clear all menu data from a picker menu.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="exist" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-exist</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-ex</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><br />
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">This is a query only flag that can be used to query for the existence of a specific picker menu.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="itemarray" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-itemArray</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-ia</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><br />
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">This is a query only flag that can be used to query &nbsp;the list of menu items id string array.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="insertmenuitem" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-insertMenuItem</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-imi</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">int string string string script string</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="create" title="create" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="create.gif"/><img alt="edit" title="edit" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="edit.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">This is a edit only flag that can be used to insert a menu item to picker menu at certain index. Specify index small than 0 will just prepend menu item at first index, index larger than last item index will just append menu item.</span></p>
<p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Specify index, label, icon path, command type (&quot;mel&quot; or &quot;python&quot;), command and the radial position for marking menu position (&quot;N&quot;, &quot;NW&quot;, &quot;W&quot;, &quot;SW&quot;, &quot;S&quot;, &quot;SE&quot;, &quot;E&quot; or &quot;NE&quot;).</span></p>
<p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">* Keep in mind that, if this flag is used in create mode, it will still return the inserted menu item id instead of the menu id.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="mode" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-mode</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-m</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p class="p_Normal"><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="create" title="create" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="create.gif"/><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">In query mode, it returns the current menu is picker item's right clicking menu or right clicking menu. In create mode, this is a must have flag, to specify which menu we wanna retrieve. (-parent is also a must have flag in create mode)</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="menuitem" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-menuItem</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-mi</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">int</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">This is a query only flag, for retrieving the menu item id string at specific index.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="markingmenu" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-markingMenu</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-mm</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">boolean</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="create" title="create" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="create.gif"/><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/><img alt="edit" title="edit" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="edit.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:942px; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Query or set if the menu is a marking menu.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="numberofitems" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-numberOfItems</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-ni</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="color: #000000;">&nbsp;</span></p>
</td>
</tr>
</table>
</div>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Query the number of menu items in this menu.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="parent" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-parent</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-p</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="create" title="create" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="create.gif"/><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">In query mode, it returns the picker picker item &nbsp;id this menu belongs to. In create mode, this is a must have flag, to specify which menu we wanna retrieve. (-mode is also a must have flag in create mode)</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="popoutsidebbox" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-popOutsideBBox</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-pob</span><span style="font-family: 'Courier New',Courier,monospace;">)</span><img alt="v2_transparent" width="34" height="12" style="margin:0;width:34px;height:12px;border:none" src="v2_transparent.png"/></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">boolean</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="create" title="create" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="create.gif"/><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/><img alt="edit" title="edit" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="edit.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Whether the menu pops up at the cursor position or outside the bounding box of the picker item. e.g. if a command button is used as menu bar menu, when you click on it, you expect the menu pops up under</span></p>
<p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">the command button instead of at the cursor position. </span><br />
<span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">This flag works for both right clicking menu and left clicking menu and you can set different value for each. By default it is False, meaning menu pop up at the cursor position.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="userightmenu" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-useRightMenu</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-urm</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">boolean</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="create" title="create" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="create.gif"/><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/><img alt="edit" title="edit" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="edit.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p style="line-height: 1.38;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Decide if the left click menu use the content of right click menu. </span></p>
<p style="line-height: 1.38;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">For right click menu, in edit mode this flag has no effect, in query mode, this flag always return true.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="view" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-view</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-v</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="create" title="create" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="create.gif"/><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/><img alt="edit" title="edit" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="edit.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:943px; padding:1px; border:none"><p style="line-height: 1.38;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Specify which picker view we wanna create / edit / query the picker menu. </span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; padding:1px; border:none"><br />
</td>
<td style="vertical-align:top; padding:1px; border:none"><br />
</td>
<td style="vertical-align:top; padding:1px; border:none"><br />
</td>
</tr>
<tr>
<td style="vertical-align:top; padding:1px; border:none"><br />
</td>
<td style="vertical-align:top; padding:1px; border:none"><br />
</td>
<td style="vertical-align:top; padding:1px; border:none"><br />
</td>
</tr>
</table>
</div>
<hr style="height:2px; color:#CCCCCC; border-width:0; background-color:#cccccc;" /><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 10px 0 0 0;"><table style="background-color:#eeeeee; border:none; border-spacing:1px;">
<tr>
<td style="vertical-align:top; padding:4px; border:none"><p><img alt="create" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="create.gif"/><span class="f_ImageCaption"> </span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Flag can appear in Create mode of command</span></p>
</td>
<td style="vertical-align:top; padding:4px; border:none"><p><img alt="edit" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="edit.gif"/><span class="f_ImageCaption"> </span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Flag can appear in Edit mode of command</span></p>
</td>
</tr>
<tr>
<td style="vertical-align:top; padding:4px; border:none"><p><img alt="query" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="query.gif"/><span class="f_ImageCaption"> </span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Flag can appear in Query mode of command</span></p>
</td>
<td style="vertical-align:top; padding:4px; border:none"><p><img alt="multiuse" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="multiuse.gif"/><span class="f_ImageCaption"> </span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Flag can be used more than once in a command.</span></p>
</td>
</tr>
</table>
</div>
<p style="margin: 19px 0 0 0;"><a id="examples" class="hmanchor"></a><span style="font-size: 14pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">MEL examples</span></p>
<p class="p_Normal" style="line-height: 1.0; white-space: nowrap; margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">//&nbsp;You&nbsp;must&nbsp;make&nbsp;sure&nbsp;the&nbsp;picker&nbsp;item:&nbsp;commandButton1&nbsp;is&nbsp;already&nbsp;in&nbsp;scene&nbsp;in&nbsp;order&nbsp;to&nbsp;test&nbsp;these&nbsp;codes.</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">//&nbsp;To&nbsp;form&nbsp;a&nbsp;picker&nbsp;menu&nbsp;id,&nbsp;use&nbsp;pickerItemId.leftmenu&nbsp;/&nbsp;pickerItemId.rightmenu</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">string&nbsp;$cmdButton&nbsp;=&nbsp;&quot;commandButton1&quot;;</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">string&nbsp;$rightMenu&nbsp;=&nbsp;`MGPickerMenu&nbsp;-p&nbsp;$cmdButton&nbsp;-m&nbsp;&quot;rightmenu&quot;`; &nbsp; &nbsp; &nbsp; &nbsp;//This&nbsp;just&nbsp;retrieves&nbsp;the&nbsp;id&nbsp;&quot;commandButton1.rightmenu&quot;&nbsp;instead&nbsp;of&nbsp;creating&nbsp;it.</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">&nbsp;</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">//&nbsp;Add&nbsp;/&nbsp;Insert&nbsp;a&nbsp;menu&nbsp;item:</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">string&nbsp;$menuItem1&nbsp;=&nbsp;`MGPickerMenu&nbsp;-e&nbsp;-addMenuItem&nbsp;&quot;First&nbsp;Menu&nbsp;Item&quot;&nbsp;&quot;/path/to/icon0.png&quot;&nbsp;&quot;mel&quot;&nbsp;&quot;print&nbsp;\&quot;It&nbsp;works!\&quot;&quot;&nbsp;&quot;N&quot;&nbsp;$rightMenu`;</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">string&nbsp;$menuItem3&nbsp;=&nbsp;`MGPickerMenu&nbsp;-e&nbsp;-addMenuItem&nbsp;&quot;Third&nbsp;Menu&nbsp;Item&quot;&nbsp;&quot;/path/to/icon2.png&quot;&nbsp;&quot;python&quot;&nbsp;&quot;print&nbsp;'It&nbsp;works!'&quot;&nbsp;&quot;S&quot;&nbsp;$rightMenu`;</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">string&nbsp;$menuItem2&nbsp;=&nbsp;`MGPickerMenu&nbsp;-e&nbsp;-insertMenuItem&nbsp;1&nbsp;&quot;Second&nbsp;Menu&nbsp;Item&quot;&nbsp;&quot;/path/to/icon1.png&quot;&nbsp;&quot;python&quot;&nbsp;&quot;print&nbsp;'It&nbsp;inserts!'&quot;&nbsp;&quot;E&quot;&nbsp;$rightMenu`;</span></p>
<p class="p_Normal" style="line-height: 1.0; white-space: nowrap; margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">//&nbsp;Now&nbsp;you&nbsp;can&nbsp;test&nbsp;right&nbsp;click&nbsp;on&nbsp;commandButton1&nbsp;using&nbsp;preview&nbsp;tool,&nbsp;see&nbsp;menu&nbsp;pops&nbsp;up!</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">&nbsp;</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">//&nbsp;Let's&nbsp;continue&nbsp;to&nbsp;toggle&nbsp;on&nbsp;the&nbsp;marking&nbsp;menu&nbsp;state&nbsp;of&nbsp;the&nbsp;menu.</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">MGPickerMenu&nbsp;-e&nbsp;-markingMenu&nbsp;1&nbsp;$rightMenu;</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">//&nbsp;Now&nbsp;you&nbsp;can&nbsp;test&nbsp;right&nbsp;click&nbsp;on&nbsp;commandButton1&nbsp;using&nbsp;preview&nbsp;tool,&nbsp;see&nbsp;marking&nbsp;menu&nbsp;pops&nbsp;up!</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">&nbsp;</span></p>
<p style="margin: 19px 0 0 0;"><a id="pyexamples" class="hmanchor"></a><span style="font-size: 14pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">Python examples</span></p>
<p style="margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">from mgpicker import mgp</span></p>
<p class="p_Normal" style="line-height: 1.0; white-space: nowrap; margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">#&nbsp;You&nbsp;must&nbsp;make&nbsp;sure&nbsp;the&nbsp;picker&nbsp;item:&nbsp;commandButton1&nbsp;is&nbsp;already&nbsp;in&nbsp;scene&nbsp;in&nbsp;order&nbsp;to&nbsp;test&nbsp;these&nbsp;codes.</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">#&nbsp;To&nbsp;form&nbsp;a&nbsp;picker&nbsp;menu&nbsp;id,&nbsp;use&nbsp;pickerItemId.leftmenu&nbsp;/&nbsp;pickerItemId.rightmenu</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">cmdButton&nbsp;=&nbsp;'commandButton1'</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">rightMenu&nbsp;=&nbsp;mgp.MGPickerMenu(p=cmdButton,&nbsp;mode='rightmenu')&nbsp;#&nbsp;This&nbsp;just&nbsp;retrieves&nbsp;the&nbsp;id&nbsp;&quot;commandButton1.rightmenu&quot;&nbsp;instead&nbsp;of&nbsp;creating&nbsp;it.</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">&nbsp;</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">#&nbsp;&nbsp;Add&nbsp;/&nbsp;Insert&nbsp;a&nbsp;menu&nbsp;item:</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">menuItem1&nbsp;=&nbsp;mgp.MGPickerMenu(rightMenu,&nbsp;e=True,&nbsp;addMenuItem=('First&nbsp;Menu&nbsp;Item',&nbsp;'/path/to/icon0.png',&nbsp;'mel',&nbsp;'print&nbsp;&quot;It&nbsp;works!&quot;',&nbsp;'N'))</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">menuItem3&nbsp;=&nbsp;mgp.MGPickerMenu(rightMenu,&nbsp;e=True,&nbsp;addMenuItem=('Third&nbsp;Menu&nbsp;Item',&nbsp;'/path/to/icon2.png',&nbsp;'python',&nbsp;'print&nbsp;&quot;It&nbsp;works!&quot;',&nbsp;'S'))</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">menuItem2&nbsp;=&nbsp;mgp.MGPickerMenu(rightMenu,&nbsp;e=True,&nbsp;insertMenuItem=(1,&nbsp;'Second&nbsp;Menu&nbsp;Item',&nbsp;'/path/to/icon1.png',&nbsp;'python',&nbsp;'print&nbsp;&quot;It&nbsp;inserts!&quot;',&nbsp;'E'))</span></p>
<p class="p_Normal" style="line-height: 1.0; white-space: nowrap; margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">#&nbsp;Now&nbsp;you&nbsp;can&nbsp;test&nbsp;right&nbsp;click&nbsp;on&nbsp;commandButton1&nbsp;using&nbsp;preview&nbsp;tool,&nbsp;see&nbsp;menu&nbsp;pops&nbsp;up!</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">&nbsp;</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">#&nbsp;Let's&nbsp;continue&nbsp;to&nbsp;toggle&nbsp;on&nbsp;the&nbsp;marking&nbsp;menu&nbsp;state&nbsp;of&nbsp;the&nbsp;menu.</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">mgp.MGPickerMenu(rightMenu,&nbsp;e=True,&nbsp;markingMenu=True&nbsp;)</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">#&nbsp;Now&nbsp;you&nbsp;can&nbsp;test&nbsp;right&nbsp;click&nbsp;on&nbsp;commandButton1&nbsp;using&nbsp;preview&nbsp;tool,&nbsp;see&nbsp;marking&nbsp;menu&nbsp;pops&nbsp;up!</span></p>
</td></tr></table>
<table height="30" width="100%" border="0" cellspacing="" cellpadding="0" bgcolor="#D0D0D0">
<tr valign="bottom" bgcolor="#D0D0D0" >
<td align="left" valign="middle" >
<a href="welcome.htm"><img border="0" src="../common/images/MGtoolsHelp_Home.gif" width="34" height="22" alt="Home" /></a>
<a href="mgpickerlink.htm"><img border="0" src="../common/images/MGtoolsHelp_previous.gif" width="34" height="22" alt="Previous" /></a>
<a href="mgpickermenuitem.htm"><img border="0" src="../common/images/MGtoolsHelp_next.gif" width="34" height="22" alt="Next" /></a></td>
</tr>
</table>
</body>
</html>