Update
This commit is contained in:
@@ -0,0 +1,558 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>MGPickerMenuItem Command</title>
|
||||
<meta name="generator" content="Help & Manual" />
|
||||
<meta name="keywords" content="API,menu,menuItem,MGPickerMenuItem 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", "mgpickermenuitem.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>
|
||||
<a href="mgpickermenu.htm"><img border="0" src="../common/images/MGtoolsHelp_previous.gif" width="34" height="22" alt="Previous" /></a>
|
||||
<a href="mgsvgimport.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;">MGPickerMenuItem</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="mgpickermenuitem.htm#synopsis" class="topiclink">Synopsis</a>. <a href="mgpickermenuitem.htm#examples" class="topiclink">MEL examples</a>. <a href="https://www.helpandmanual.com/order.html" 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;">MGPickerMenuItem (menuItemIDString, [<a href="mgpickermenuitem.htm#addsubmenuitem" class="topiclink">addSubMenuItem</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="mgpickermenuitem.htm#command" class="topiclink">command</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="mgpickermenuitem.htm#commandtype" class="topiclink">commandType</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="mgpickermenuitem.htm#divider" class="topiclink">divider</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="mgpickermenuitem.htm#dividerlabel" class="topiclink">dividerLabel</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="mgpickermenuitem.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="mgpickermenuitem.htm#image" class="topiclink">image</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="mgpickermenuitem.htm#insertsubmenuitem" class="topiclink">insertSubMenuItem</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="mgpickermenuitem.htm#label" class="topiclink">label</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="https://www.helpandmanual.com/order.html" class="topiclink">longDivider</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="mgpickermenuitem.htm#numberofsubitems" class="topiclink">numberOfSubItems</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="mgpickermenuitem.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="mgpickermenuitem.htm#radialposition" class="topiclink">radialPosition</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="mgpickermenuitem.htm#subitemarray" class="topiclink">subItemArray</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="mgpickermenuitem.htm#submenu" class="topiclink">subMenu</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="mgpickermenuitem.htm#submenuitem" class="topiclink">subMenuItem</a>=int], [<a href="mgpickermenuitem.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;">MGPickerMenuItem 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;">This command create / queries / edits picker menu.</span></p>
|
||||
<p><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;">In create mode, it will add a picker menu item for the parent menu / menuitem specified by -parent flag.</span></p>
|
||||
<p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">A picker menu item id string is something like:</span></p>
|
||||
<p><span style="width:48px;display:inline-block"> </span><span style="font-family: 'Times New Roman',Times,Georgia,serif;">commandButton1.rightmenu[0] //The first menu item in right click menu for the picker item of id "commandButton1"</span></p>
|
||||
<p><span style="width:48px;display:inline-block"> </span><span style="font-family: 'Times New Roman',Times,Georgia,serif;">selectButton1.leftmenu[1][3] //The 4th sub menu item in second menuitem in left click menu for the picker item of id "selectButton1"</span></p>
|
||||
<p><span style="color: #000000;"> </span></p>
|
||||
<p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">For now in picker & in API, only one level of sub menu supported.</span></p>
|
||||
<p class="p_Normal"> </p>
|
||||
<p class="p_Normal"> </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="addsubmenuitem" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-addSubMenuItem</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-asi</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;">Add a sub menu item to current menu item. If current menu item is already a sub menu item, it will do nothing and return empty id string, since MGPicker only support one level of sub-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 ("mel" or "python"), command and the radial position for marking menu position ("N", "NW", "W", "SW", "S", "SE", "E" or "NE").</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 sub-menu item id instead of current menu item id.</span></p>
|
||||
<p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">* Also if current menu item is already a sub menu item, this flag won't work and just return empty 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="command" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-command</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-c</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 class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">The command of menu item.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="commandtype" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-commandType</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-ct</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 class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">The command type of menu item: "mel" or "python".</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="divider" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-divider</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-d</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 class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">The menu item is a separator or not.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="deleteallsubitems" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-deleteAllSubItems</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"><p><span style="color: #000000;"> </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;">Delete all sub menu items of current menu item.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="dividerlabel" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-dividerLabel</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-dl</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 class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">The divider label of current menu item. Only shown when menu item is a separator (dividier=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="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 item.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="image" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-image</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-i</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"/><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;">The icon path for the menu item.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="insertsubmenuitem" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-insertSubMenuItem</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-isi</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;">Insert a sub-menu item to current picker menu item at certain index. Specify index small than 0 will just prepend sub-menu item at first index, index larger than last item index will just append sub-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 ("mel" or "python"), command and the radial position for marking menu position ("N", "NW", "W", "SW", "S", "SE", "E" or "NE").</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 sub-menu item id instead of current menu item 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="label" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-label</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-l</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"/><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;">The label string of the menu item.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="longdivider" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-longDivider</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-ld</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><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Whether or not it should be a long divider if the menu item is a separator (dividier=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="numberofsubitems" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-numberOfSubItems</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-nsi</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="color: #000000;"> </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:942px; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">The number of sub menu items.</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 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 picker menu / menu item id this menu item belong to. In create mode, this is a must have flag, to specify for which menu / menu item we wanna add a menu item.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="radialposition" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-radialPosition</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-rp</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;">The radial position for the menu item: "N", "NW", "W", "SW", "S", "SE", "E" or "NE". You still need to turn on the markingMenu flag for the menu to make it take effect.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="subitemarray" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-subItemArray</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-sia</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="color: #000000;"> </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 style="line-height: 1.38;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Return list of sub menu item 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="submenu" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-subMenu</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-sm</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><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Decide current menu item should be a sub menu that can contain sub-menu items. If current menu item is already a sub-menu item, this flag takes no effect.</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="submenuitem" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-subMenuItem</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-smi</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 sub 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="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 item. </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>
|
||||
<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;">// You must make sure the picker item: commandButton1 is already in scene in order to test these codes.</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">// To form a picker menu id, use pickerItemId.leftmenu / pickerItemId.rightmenu</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">string $cmdButton = "commandButton1";</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">string $rightMenu = `MGPickerMenu -p $cmdButton -m "rightmenu"`; //This just retrieves the id "commandButton1.rightmenu" instead of creating it.</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"> </span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">// We get a menu item id via -addMenuItem or -insertMenuItem flag of MGPickerMenu command:</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">string $menuItem0 = `MGPickerMenu -e -addMenuItem "First Menu Item" "/path/to/icon0.png" "mel" "print \"It works!\"" "N" $rightMenu`;</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"> </span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">// We can add a menu item using MGPickerMenuItem command:</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">string $menuItem1 = `MGPickerMenuItem -parent $rightMenu </span><br />
|
||||
<span style="width:48px;display:inline-block"> </span> <span style="font-family: 'Courier New',Courier,monospace;"> -label "Second Menu Item" </span><br />
|
||||
<span style="width:48px;display:inline-block"> </span> <span style="font-family: 'Courier New',Courier,monospace;"> -image "/path/to/icon1.png" </span><br />
|
||||
<span style="width:48px;display:inline-block"> </span> <span style="font-family: 'Courier New',Courier,monospace;"> -commandType "mel" </span><br />
|
||||
<span style="width:48px;display:inline-block"> </span> <span style="font-family: 'Courier New',Courier,monospace;"> -command "print \"The MGPickerMenuItem in create mode works !\"" </span><br />
|
||||
<span style="width:48px;display:inline-block"> </span> <span style="font-family: 'Courier New',Courier,monospace;"> -radialPosition "N"`;</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;">// We can also make a menu item a sub menu:</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">MGPickerMenuItem -e -subMenu 1 $menuItem0;</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"> </span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">// Like we did above, add submenu items:</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">string $subMenuItem1 = `MGPickerMenuItem -e -addSubMenuItem "First SubMenu Item" "/path/to/icon.png" "python" "print 'Sub menu item works!'" "" $menuItem0`;</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"> </span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">// We can also add a sub-menu item using MGPickerMenuItem command:</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">string $subMenuItem2 = `MGPickerMenuItem -parent $menuItem0 </span><br />
|
||||
<span style="width:48px;display:inline-block"> </span> <span style="font-family: 'Courier New',Courier,monospace;"> -label "Second SubMenu Item" </span><br />
|
||||
<span style="width:48px;display:inline-block"> </span> <span style="font-family: 'Courier New',Courier,monospace;"> -image "/path/to/icon.png" </span><br />
|
||||
<span style="width:48px;display:inline-block"> </span> <span style="font-family: 'Courier New',Courier,monospace;"> -commandType "python" </span><br />
|
||||
<span style="width:48px;display:inline-block"> </span> <span style="font-family: 'Courier New',Courier,monospace;"> -command "print 'The MGPickerMenuItem in create mode also works for submenu item!'"`;</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"> </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;"># You must make sure the picker item: commandButton1 is already in scene in order to test these codes.</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"># To form a picker menu id, use pickerItemId.leftmenu / pickerItemId.rightmenu</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">cmdButton = 'commandButton1'</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">rightMenu = mgp.MGPickerMenu(p=cmdButton, mode='rightmenu') # This just retrieves the id "commandButton1.rightmenu" instead of creating it.</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"> </span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"># We get a menu item id via -addMenuItem or -insertMenuItem flag of MGPickerMenu command:</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">menuItem0 = mgp.MGPickerMenu(rightMenu, e=True, addMenuItem=('First Menu Item', '/path/to/icon0.png', 'mel', 'print "It works!"', 'N'))</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"># We can add a menu item using MGPickerMenuItem command:</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">menuItem1 = mgp.MGPickerMenuItem(parent=rightMenu, </span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"> label='Second Menu Item', </span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"> image='/path/to/icon1.png', </span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"> commandType='mel', </span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"> command='print "The MGPickerMenuItem in create mode works !"')</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;"># We can also make a menu item a sub menu:</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">mgp.MGPickerMenuItem(menuItem0, e=True, subMenu=True)</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"> </span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"># Like we did above, add submenu items:</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">subMenuItem1 = mgp.MGPickerMenuItem(menuItem0, e=True, addSubMenuItem=('First SubMenu Item', '/path/to/icon0.png', 'mel', 'print "Sub menu works!"', ''))</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"> </span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"># We can also add a sub-menu item using MGPickerMenuItem command:</span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;">subMenuItem2 = mgp.MGPickerMenuItem(parent=menuItem0, </span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"> label='Second SubMenu Item', </span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"> image='/path/to/icon.png', </span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"> commandType='python', </span><br />
|
||||
<span style="font-family: 'Courier New',Courier,monospace;"> command="print 'The MGPickerMenuItem in create mode also works for submenu item!'")</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="mgpickermenu.htm"><img border="0" src="../common/images/MGtoolsHelp_previous.gif" width="34" height="22" alt="Previous" /></a>
|
||||
<a href="mgsvgimport.htm"><img border="0" src="../common/images/MGtoolsHelp_next.gif" width="34" height="22" alt="Next" /></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user