Creating or Extending a Package to Use the Tools API
Go Up to Extending the IDE Using the Tools API
To use the Tools API, first you need to:
- Create a package or edit an existing package.
- The
designide
package provides access to the Tools API. Ifdesignide
is not listed in the Requires node of your package:- Right-click the Requires node and select Add Reference.
- On the Add dialog box that opens, enter the following path into the Package name field and click OK:
- Delphi:
C:\Program Files (x86)\Embarcadero\Studio\17.0\lib\win32\release\designide.dcp
- C++:
C:\Program Files (x86)\Embarcadero\Studio\17.0\lib\win32\release\designide.bpi
- Delphi:
If you are writing a package in C++, you also need to add the vcl\design
folder to your include paths:
- Select Project > Options > C++ (Shared Options).
- On the Include path field, click the
button.
- On the Include path dialog box that opens, paste the path below into the input field and click Add.
C:\Program Files (x86)\Embarcadero\Studio\17.0\include\windows\vcl\design
- Click OK on the Include path and Project Options dialog boxes to save your changes.
You can now use your package to write code that extends the IDE using the Tools API.