Removes an item on a pop-up (shortcut) menu.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function RemoveMenuPopupItem2( _
ByVal DocumentType As Integer, _
ByVal Cookie As Integer, _
ByVal SelectType As Integer, _
ByVal As String, _
ByVal As String, _
ByVal As String, _
ByVal HintString As String, _
ByVal CustomNames As String _
) As Boolean |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim DocumentType As Integer
Dim Cookie As Integer
Dim SelectType As Integer
Dim PopupItemName As String
Dim MenuCallback As String
Dim MenuEnableMethod As String
Dim HintString As String
Dim CustomNames As String
Dim value As Boolean
value = instance.RemoveMenuPopupItem2(DocumentType, Cookie, SelectType, PopupItemName, MenuCallback, MenuEnableMethod, HintString, CustomNames)
|
Parameters
- DocumentType
- Document type as defined in swDocumentTypes_e
- Cookie
Cookie specified in ISwAddin::ConnectToSW
- SelectType
Selection type as defined in swSelectType_e
- PopupItemName
Description displayed on the shortcut menu
- MenuCallback
Function to call when the user clicks your menu item (see description in ISldWorks::AddMenuItem3)
- MenuEnableMethod
Optional function that controls the state of the menu item
If specified, SolidWorks:
If your method returns... |
Then SolidWorks... |
0 |
Deselects and disables the menu item |
1 |
Deselects and enables the menu item. This is the default menu state with if no update function is specified |
2 |
Selects and disables the menu item |
3 |
Selects and enables the menu item |
- HintString
Text to show in the SolidWorks status bar when the user moves their mouse over this menu item; if you specify a HintString, it must be preceded by a comma
- CustomNames
Semi-colon separated list of the names of the custom feature types. This argument is applicable only if SelectType is a custom feature type (like swSelATTRIBUTES); in the case of swSelATTRIBUTES, set this field to the name of the attribute definition
Return Value
True if the item was removed, false if not
Remarks
See Also
Availability
SolidWorks 2003 FCS, Revision Number 11.0