Obsolete. Superseded by IFrame::AddMenuPopupIcon3.
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As IFrame
Dim DocType As System.Integer
Dim SelectType As System.Integer
Dim HintString As System.String
Dim Identifier As System.Integer
Dim CallbackFunction As System.String
Dim CallbackUpdateFunction As System.String
Dim CustomNames As System.String
Dim BitmapFilePath As System.String
Dim value As System.Boolean
value = instance.AddMenuPopupIcon2(DocType, SelectType, HintString, Identifier, CallbackFunction, CallbackUpdateFunction, CustomNames, BitmapFilePath) |
Parameters
- DocType
- Document type whose context-sensitive menus display the icon
- SelectType
- Selection type whose context-sensitive menus display the icon
- HintString
- Text displayed in the SOLIDWORKS status bar when the user moves the pointer over the icon
- Identifier
- ID of the add-in; value of the Cookie argument passed by ISwAddin::ConnectToSW
- CallbackFunction
- Function called when user clicks the context-sensitive menu icon (see Remarks)
- CallbackUpdateFunction
- Optional function that controls the state of the icon; if specified, then SOLIDWORKS calls this function before displaying the icon
If CallbackUpdateFunction returns... |
Then SOLIDWORKS... |
0 |
Deselects and disables the item |
1 |
Deselects and enables the item; this is the default state if no update function is specified |
4
|
Hides the item |
(see Remarks) - CustomNames
- Names of custom feature types (see Remarks)
- BitmapFilePath
- Path and file name of the bitmap for the context-sensitive menu icon
Return Value
True if the context-sensitive menu icon is added, false if not
Example
Remarks
See Also
Availability
SOLIDWORKS 2011 FCS, Revision Number 19.0