When Windows attempts to select or deselect and enable or disable the pop-up menu item, SolidWorks calls this method to get the state of the menu item from the add-in.
.NET Syntax
Visual Basic (Declaration) | |
---|
Sub OnPopupMenuItemUpdate( _
ByVal Id As System.Integer, _
ByRef retval As System.Integer _
) |
Visual Basic (Usage) | |
---|
Dim instance As IPropertyManagerPage2Handler9
Dim Id As System.Integer
Dim retval As System.Integer
instance.OnPopupMenuItemUpdate(Id, retval) |
C# | |
---|
void OnPopupMenuItemUpdate(
System.int Id,
ref System.int retval
) |
C++/CLI | |
---|
void OnPopupMenuItemUpdate(
& System.int Id,
& System.int% retval
) |
Parameters
- Id
Unique user-defined ID for a pop-up menu item (see IPropertyManagerPage2::AddMenuPopupItem)
- retval
State of the specified unique user-defined pop-up menu item:
Remarks
See Also
Availability
SolidWorks 2012 FCS, Revision Number 20.0