Creates a Windows-style, dockable toolbar that contains a set of application-defined buttons.
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim Cookie As Integer
Dim Title As String
Dim SmallBitmapImage As String
Dim LargeBitmapImage As String
Dim MenuPositionForToolbar As Integer
Dim DocumentType As Integer
Dim value As 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