NXOpen .NET Reference
12.0.0
|
Interface for the MenuBarManager object More...
Public Types | |
enum | CallbackStatus { Continue, Cancel, OverrideStandard, Warning, Error } |
Return values for action callbacks More... | |
Public Member Functions | |
delegate NXOpen.MenuBar.MenuBarManager.CallbackStatus | ActionCallback (NXOpen.MenuBar.MenuButtonEvent buttonEvent) |
Prototype for the action callbacks More... | |
delegate int | InitializeMenuApplication () |
Prototype for application initialization callback More... | |
delegate int | EnterMenuApplication () |
Prototype for callback called whenever the application is entered More... | |
delegate int | ExitMenuApplication () |
Prototype for callback called whenever the application is exited More... | |
delegate int | ConfigureContextMenu (NXOpen.MenuBar.ContextMenu menu, NXOpen.MenuBar.ContextMenuProperties props) |
Prototype for the callback used to configure a context menu. More... | |
unsafe void | AddMenuAction (string name, NXOpen.MenuBar.MenuBarManager.ActionCallback actionCallback) |
Adds the action callback. More... | |
unsafe NXOpen.MenuBar.MenuButton | GetButtonFromName (string name) |
Finds the MenuButton associated with the given name More... | |
unsafe int | RegisterApplication (string name, NXOpen.MenuBar.MenuBarManager.InitializeMenuApplication initializeCallback, NXOpen.MenuBar.MenuBarManager.EnterMenuApplication enterCallback, NXOpen.MenuBar.MenuBarManager.ExitMenuApplication exitCallback, bool supportsDrawings, bool supportsDesignInContext, bool supportsUndo) |
Registers the application More... | |
unsafe void | ApplicationSwitchRequest (string applicationName) |
Registers a request to switch to specified application and open the corresponding user environment. More... | |
unsafe int | RegisterConfigureContextMenuCallback (string name, string description, NXOpen.MenuBar.MenuBarManager.ConfigureContextMenu configurePopupMenu) |
Registers a callback that is called whenever a customizable context menu is about to be displayed. More... | |
unsafe void | UnregisterConfigureContextMenuCallback (int id) |
Unregisters a callback for customizing context menus. More... | |
Properties | |
Tag | Tag [get] |
Returns the tag of this object. More... | |
Interface for the MenuBarManager object
To obtain an instance of this class, refer to NXOpen.UI
Created in NX6.0.0
Return values for action callbacks
delegate NXOpen.MenuBar.MenuBarManager.CallbackStatus NXOpen.MenuBar.MenuBarManager.ActionCallback | ( | NXOpen.MenuBar.MenuButtonEvent | buttonEvent | ) |
Prototype for the action callbacks
Created in NX6.0.0
License requirements: None.
buttonEvent | The reason for executing the callback |
unsafe void NXOpen.MenuBar.MenuBarManager.AddMenuAction | ( | string | name, |
NXOpen.MenuBar.MenuBarManager.ActionCallback | actionCallback | ||
) |
Adds the action callback.
Created in NX6.0.0
License requirements: None.
name | The name of the action. This name must match the string used in the .men file. |
actionCallback | The method to execute for this action |
unsafe void NXOpen.MenuBar.MenuBarManager.ApplicationSwitchRequest | ( | string | applicationName | ) |
Registers a request to switch to specified application and open the corresponding user environment.
When the running journal or program finishes, the system will attempt to switch into the target application. The current application does not change immediately. The argument is an application button name as specified and registered in the ug_main.men file. For example specify UG_APP_MODELING to try to enter the modeling application. Button names registered for custom application as described in "Adding Custom Applications to NX" chapter of the NX Open Programmer's Guide can also be used.
Created in NX8.0.0
Deprecated in NX11.0.0. Use NXOpen.Session.ApplicationSwitchImmediate instead.
License requirements: None.
applicationName | Button name of requested application |
delegate int NXOpen.MenuBar.MenuBarManager.ConfigureContextMenu | ( | NXOpen.MenuBar.ContextMenu | menu, |
NXOpen.MenuBar.ContextMenuProperties | props | ||
) |
Prototype for the callback used to configure a context menu.
Return 0 to indicate successful processing of the menu. Any other value will be treated as an error condition.
Created in NX8.5.0
License requirements: None.
menu | The menu |
props | The properties of this menu |
delegate int NXOpen.MenuBar.MenuBarManager.EnterMenuApplication | ( | ) |
Prototype for callback called whenever the application is entered
Created in NX6.0.0
License requirements: None.
delegate int NXOpen.MenuBar.MenuBarManager.ExitMenuApplication | ( | ) |
Prototype for callback called whenever the application is exited
Created in NX6.0.0
License requirements: None.
unsafe NXOpen.MenuBar.MenuButton NXOpen.MenuBar.MenuBarManager.GetButtonFromName | ( | string | name | ) |
Finds the MenuButton associated with the given name
Created in NX6.0.0
License requirements: None.
name | The name of the button. This name must match the button name used in the .men file. |
delegate int NXOpen.MenuBar.MenuBarManager.InitializeMenuApplication | ( | ) |
Prototype for application initialization callback
Created in NX6.0.0
License requirements: None.
unsafe int NXOpen.MenuBar.MenuBarManager.RegisterApplication | ( | string | name, |
NXOpen.MenuBar.MenuBarManager.InitializeMenuApplication | initializeCallback, | ||
NXOpen.MenuBar.MenuBarManager.EnterMenuApplication | enterCallback, | ||
NXOpen.MenuBar.MenuBarManager.ExitMenuApplication | exitCallback, | ||
bool | supportsDrawings, | ||
bool | supportsDesignInContext, | ||
bool | supportsUndo | ||
) |
Registers the application
Created in NX6.0.0
License requirements: None.
name | The name of the application. This name must match the string used in the .men file. |
initializeCallback | The method used to initialize the application |
enterCallback | The method called when entering the application |
exitCallback | The method called when exiting the application |
supportsDrawings | Does this application support drawings? |
supportsDesignInContext | Does this application support design in context? |
supportsUndo | Does this application support undo? |
unsafe int NXOpen.MenuBar.MenuBarManager.RegisterConfigureContextMenuCallback | ( | string | name, |
string | description, | ||
NXOpen.MenuBar.MenuBarManager.ConfigureContextMenu | configurePopupMenu | ||
) |
Registers a callback that is called whenever a customizable context menu is about to be displayed.
Each callback is registered with a short name and a longer description which is used to identify the callback for debugging purposes.
Created in NX8.5.0
License requirements: None.
name | A short string identifying the callback |
description | A longer string describing the operation of the callback |
configurePopupMenu | Callback to register |
unsafe void NXOpen.MenuBar.MenuBarManager.UnregisterConfigureContextMenuCallback | ( | int | id | ) |
Unregisters a callback for customizing context menus.
Created in NX8.5.0
License requirements: None.
id | Identifier for callback to unregister |
|
get |
Returns the tag of this object.