Replaces a command item at the specified position.
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As IFlyoutGroup
Dim Position As System.Integer
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.ReplaceCommandItem(Position, Name, HintString, ImageListIndex, CallbackFunction, UpdateCallbackFunction) |
Parameters
- Position
0-based index of the item to replace in the flyout
- 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 assigned to the parent flyout (see Remarks)
- CallbackFunction
Function to call when this item is selected
- UpdateCallbackFunction
- Optional function that controls the state of the item; if specified, then SOLIDWORKS calls this function before displaying the item
If your method returns... |
Then the SOLIDWORKS software... |
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 |
Remarks
See Also
Availability
SOLIDWORKS 2011 FCS, Revision Number 19.0