NX Open C++ Reference Guide
|
Represents an entry on a context menu. More...
Public Types | |
enum | Type { TypeSubmenu, TypePushButton, TypeToggleButton, TypeSeparator } |
Specifies the type of the menu entry. More... | |
Public Member Functions | |
NXOpen::MenuBar::ContextMenuEntry::Type | EntryType () |
Returns the type of this menu entry. | |
bool | IsDefault () |
Returns true if this entry is the default action for the menu. | |
bool | IsHidden () |
Returns true if this entry is hidden on the menu. | |
bool | IsSensitive () |
Returns true if the command corresponding to this entry can be run. | |
NXString | Label () |
Returns the label of this menu entry. | |
NXString | Name () |
Returns the name of this menu entry. | |
virtual | ~ContextMenuEntry () |
Frees the object from memory. | |
![]() | |
void * | GetHandle () |
Handle of the internal object represented by this object. | |
Represents an entry on a context menu.
Created in NX8.5.0.
|
virtual |
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 NX8.5.0.
License requirements : None
NXOpen::MenuBar::ContextMenuEntry::Type NXOpen::MenuBar::ContextMenuEntry::EntryType | ( | ) |
Returns the type of this menu entry.
Created in NX8.5.0.
License requirements : None
bool NXOpen::MenuBar::ContextMenuEntry::IsDefault | ( | ) |
Returns true if this entry is the default action for the menu.
A menu entry is marked as the default for the menu when it corresponds to the double-click action.
Created in NX8.5.0.
License requirements : None
bool NXOpen::MenuBar::ContextMenuEntry::IsHidden | ( | ) |
Returns true if this entry is hidden on the menu.
Created in NX8.5.0.
License requirements : None
bool NXOpen::MenuBar::ContextMenuEntry::IsSensitive | ( | ) |
Returns true if the command corresponding to this entry can be run.
Created in NX8.5.0.
License requirements : None
NXString NXOpen::MenuBar::ContextMenuEntry::Label | ( | ) |
Returns the label of this menu entry.
Created in NX8.5.0.
License requirements : None
NXString NXOpen::MenuBar::ContextMenuEntry::Name | ( | ) |
Returns the name of this menu entry.
Some entries on the context menu may correspond to buttons on the menu bar. For these entries, the name that is returned is the name of that @link MenuBar::MenuButton MenuBar::MenuButton@endlink object. For all other entries which do not correspond to a menu bar button, the name that is returned has no specific meaning. However, for any individual action within any specific context menu, the name that is assigned to that action will not change.
Created in NX8.5.0.
License requirements : None