NXOpen .NET Reference Guide
|
Represents Custom Popup Menu Handler class More...
Classes | |
class | _CustomPopupMenuHandlerAddCustomPopupMenuCallbackAdapter |
class | _CustomPopupMenuHandlerCustomPopupMenuInvokedCallbackAdapter |
Public Member Functions | |
delegate int | AddCustomPopupMenuCallback () |
This callback will be invoked by NX application when a RMB click is performed on NX Tc Navigator application. More... | |
unsafe NXOpen.CustomPopupMenu | AddMenu (int menuId, string menuName) |
Adds and returns a menu to the COTS (Commercial, off-the-shelf) RMB menu More... | |
unsafe NXOpen.CustomPopupMenuItem | AddMenuItem (int menuItemId, string menuItemName) |
Adds and returns a menu item to the COTS (Commercial, off-the-shelf) RMB menu More... | |
unsafe void | AddMenuSeparator () |
Adds a separator to the COTS (Commercial, off-the-shelf) RMB menu More... | |
delegate int | CustomPopupMenuInvokedCallback () |
This callback will be invoked by NX when user clicks on a custom menu item. More... | |
unsafe NXOpen.CustomPopupMenuItem | GetInvokedCommand () |
Returns the menu item for the command invoked More... | |
unsafe void | GetSelectedNodes (out NXOpen.TreeListNode[] selectedNodes) |
Returns a list of node(s) selected during a RMB click. More... | |
unsafe void | RegisterAddCustomPopupMenuCallback (NXOpen.CustomPopupMenuHandler.AddCustomPopupMenuCallback popupCb) |
Registers the add_custom_popup_menu_callback callback method with the popup menu handler object. More... | |
unsafe void | RegisterCustomPopupMenuInvokedCallback (NXOpen.CustomPopupMenuHandler.CustomPopupMenuInvokedCallback popupCb) |
Registers the add_custom_popup_menu_callback callback method with the popup menu handler object. More... | |
Public Member Functions inherited from NXOpen.TransientObject | |
void | Dispose () |
Frees the object from memory. More... | |
void | PrintTestData (String variableName) |
<exclude> More... | |
void | PrintTestData (String variableName, int lineNumber) |
<exclude> More... | |
new string | ToString () |
Returns a String that represents the current Object. More... | |
Public Member Functions inherited from NXOpen.Utilities.NXRemotableObject | |
IMessageCtrl | AsyncProcessMessage (IMessage msg, IMessageSink replySink) |
Asynchronously processes the given message. More... | |
IMessage | SyncProcessMessage (IMessage msg) |
Synchronously processes the given message. More... | |
Protected Member Functions | |
override void | FreeResource () |
Frees the object from memory. More... | |
Additional Inherited Members | |
Properties inherited from NXOpen.TransientObject | |
IntPtr | Handle [get] |
Handle of the internal object represented by this object. More... | |
Represents Custom Popup Menu Handler class
Created in NX6.0.4
delegate int NXOpen.CustomPopupMenuHandler.AddCustomPopupMenuCallback | ( | ) |
This callback will be invoked by NX application when a RMB click is performed on NX Tc Navigator application.
Customer can query the selected object(s) and set the cascading custom popup menu to be appended to the existing COTS (Commercial, off-the-shelf) RMB popup menu.
Created in NX6.0.4
License requirements: None.
|
inline |
Adds and returns a menu to the COTS (Commercial, off-the-shelf) RMB menu
Created in NX6.0.4
License requirements: None.
menuId | Id of the menu |
menuName | name of the menu |
|
inline |
Adds and returns a menu item to the COTS (Commercial, off-the-shelf) RMB menu
Created in NX6.0.4
License requirements: None.
menuItemId | Id of the menu item |
menuItemName | name of the menu item |
|
inline |
Adds a separator to the COTS (Commercial, off-the-shelf) RMB menu
Created in NX6.0.4
License requirements: None.
delegate int NXOpen.CustomPopupMenuHandler.CustomPopupMenuInvokedCallback | ( | ) |
This callback will be invoked by NX when user clicks on a custom menu item.
The picked menu and object(s) selected can be queried from within this callback.The custom implementation can perform appropriate action associated with this menu pick.
Created in NX6.0.4
License requirements: None.
|
inlineprotectedvirtual |
Frees the object from memory.
After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.
Created in NX6.0.4
License requirements: None.
Implements NXOpen.TransientObject.
|
inline |
Returns the menu item for the command invoked
Created in NX6.0.4
License requirements: None.
|
inline |
Returns a list of node(s) selected during a RMB click.
Customer can call this query API inside the implementation of NXOpen.CustomPopupMenuHandler.AddCustomPopupMenuCallback or NXOpen.CustomPopupMenuHandler.CustomPopupMenuInvokedCallback to obtain additional information
Created in NX6.0.4
License requirements: None.
selectedNodes | Selected Nodes |
|
inline |
Registers the add_custom_popup_menu_callback callback method with the popup menu handler object.
Created in NX6.0.4
License requirements: None.
popupCb |
|
inline |
Registers the add_custom_popup_menu_callback callback method with the popup menu handler object.
Created in NX6.0.4
License requirements: None.
popupCb |