Adds an item to a flyout menu.
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As IFlyoutGroup
Dim Name As System.String
Dim HintString As System.String
Dim ImageListIndex As System.Integer
Dim CallbackFunction As System.String
Dim UpdateCallbackFunction As System.String
Dim value As System.Integer
value = instance.AddCommandItem(Name, HintString, ImageListIndex, CallbackFunction, UpdateCallbackFunction) |
Parameters
- Name
- Name of the item to add to the flyout
- HintString
- Text displayed in the SOLIDWORKS status bar when the pointer is on the item
- ImageListIndex
- Index of the image in the icon list (see Remarks)
- CallbackFunction
Function to call when this item is selected (see Remarks)
- UpdateCallbackFunction
- Optional function that controls the state of the item; if specified, then SOLIDWORKS calls this function before displaying the item
If UpdateCallbackFunction 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 |
2 |
Selects and disables the item |
3 |
Selects and enables the item |
4 |
Hides the item |
(see Remarks)
Return Value
Index of the item within the flyout as assigned by SOLIDWORKS
Example
Remarks
See Also
Availability
SOLIDWORKS 2011 FCS, Revision Number 19.0