Visual Basic | |
---|---|
Public Interface IToolbar |
C# | |
---|---|
public interface IToolbar |
JavaScript | |
---|---|
Object dsToolbar |
COM native C++ | |
---|---|
interface IToolbar |
C++ | |
---|---|
class dsToolbar |
The following code snippets show how to add a toolbar to the list of available toolbars:
- COM native C++(from the DraftSight API COM native C++ template file DsAddinConnection.cpp)
- C++ (from the DraftSight API C++ template file dsAddinConnection.cpp)
COM native C++
IToolbarPtr pToolbar = m_DsApp->AddToolbar( m_sApiUuid, dsUIState_Document, L"DsAddin Toolbar");
C++
"QAddIn1_Toolbar";dsString ToolbarName = L
dsToolbar_ptr pToolbar;
dsApp->AddToolbar( myApplication::appID, dsUIState_Document, ToolbarName, &pToolbar );
To display the list of available toolbars, right-click a toolbar in the DraftSight user interface and select Toolbars to open the Specify Toolbars dialog.