Creates a Windows-style, dockable toolbar that contains a set of application-defined buttons.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddToolbar4( _
ByVal Cookie As System.Integer, _
ByVal Title As System.String, _
ByVal SmallBitmapImage As System.String, _
ByVal LargeBitmapImage As System.String, _
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 SmallBitmapImage As System.String
Dim LargeBitmapImage As System.String
Dim MenuPositionForToolbar As System.Integer
Dim DocumentType As System.Integer
Dim value As System.Integer
value = instance.AddToolbar4(Cookie, Title, SmallBitmapImage, LargeBitmapImage, 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
- SmallBitmapImage
Bitmap file to use for the small bitmap for the toolbar (see Remarks)
- LargeBitmapImage
Bitmap file to use for the large bitmap 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 2004 FCS, Revision Number 12.0