NXOpen .NET Reference Guide
1899
|
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... | |
unsafe void | AddMenuAction (string name, NXOpen.MenuBar.MenuBarManager.ActionCallback actionCallback) |
Adds the action callback. More... | |
delegate int | ConfigureContextMenu (NXOpen.MenuBar.ContextMenu menu, NXOpen.MenuBar.ContextMenuProperties props) |
Prototype for the callback used to configure a context menu. 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... | |
unsafe NXOpen.MenuBar.MenuButton | GetButtonFromName (string name) |
Finds the MenuButton associated with the given name More... | |
delegate int | InitializeMenuApplication () |
Prototype for application initialization callback More... | |
unsafe NXOpen.MenuBar.ApplicationProperties | NewApplicationProperties () |
Constructs a new ApplicationProperties object. 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 int | RegisterApplication (string name, NXOpen.MenuBar.MenuBarManager.InitializeMenuApplication initializeCallback, NXOpen.MenuBar.MenuBarManager.EnterMenuApplication enterCallback, NXOpen.MenuBar.MenuBarManager.ExitMenuApplication exitCallback, NXOpen.MenuBar.ApplicationProperties application) |
Registers the application 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... | |
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... | |
Properties | |
Tag | Tag [get] |
Returns the tag of this object. More... | |
Properties inherited from NXOpen.Utilities.NXRemotableObject | |
IMessageSink | NextSink [get] |
Gets the next message sink in the sink chain. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from NXOpen.Utilities.NXRemotableObject | |
void | initialize () |
<exclude> 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 |
|
inline |
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 |
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.
|
inline |
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.
|
inline |
Constructs a new ApplicationProperties object.
Created in NX1847.0.0
License requirements: None.
|
inline |
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? |
|
inline |
Registers the application
Created in NX1847.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 |
application | The application properties |
|
inline |
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 |
|
inline |
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.