DG Kernel Component in Delphi
Specific to Delphi: It is recommended to disable KernelCADEvent and request equivalent DgkMiscEvent instead like: m_dgk.RequestEvent(eEventKernelCAD, false); m_dgk.RequestEvent(eEventDgkMisc, true); as Delphi does not interpret KernelCADEvent signature correctly.
The steps below describe integration of DG Kernel control into Delphi IDE.
These steps are needed after any changes in interface of DG Kernel, normally after upgrading to a next version.
Sometimes new functionality is added in updates between minor versions. We recommend checking for that in what is new
section of download page.
- In the menu of Delphi IDE/RAD Studio select Component > Import Component
- Select Import ActiveX Control in the form and press Next
- Select the KernelCAD Pro ActiveX module in the list. Click Next
- Make sure Generate Component Wrappers checked. Click Next
- Select Create Unit option. Click Finish
- File KERNELCADLib_TLB will be created. You can close it.
- After this you can can use KenelCAD control on your forms using Palette > ActiveX group
See also: Patch Delphi tutorial
|