Creates a Windows-style dockable toolbar.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddToolbar5( _
ByVal Cookie As System.Integer, _
ByVal Title As System.String, _
ByVal ImageList As System.Object, _
ByVal As System.Integer, _
ByVal DocumentType As System.Integer _
) As System.Integer |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim Cookie As System.Integer
Dim Title As System.String
Dim ImageList As System.Object
Dim MenuPositionForToolbar As System.Integer
Dim DocumentType As System.Integer
Dim value As System.Integer
value = instance.AddToolbar5(Cookie, Title, ImageList, MenuPositionForToolbar, DocumentType) |
Parameters
- Cookie
Resource ID of the toolbar; this is the same cookie that you specified in ISwAddin::ConnectToSW
- Title
- Title of the toolbar
- ImageList
- Array of strings of the paths for the icons for the toolbar (see Remarks)
- MenuPositionForToolbar
Not used (SOLIDWORKS always puts toolbar names in alphabetical order)
- DocumentType
Bitwise values indicating what frame window types should have this toolbar's name added to the View > Toolbars menu; values from swDocTemplateTypes_e
Return Value
Toolbar ID for use with other methods or -1 if not created
Example
Remarks
See Also
Availability
SOLIDWORKS 2016 FCS, Revision Number 24.0