Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Component Design - "File not found: 'DockForm.dcu"?

I am writing a component that requires the use of both the units

DesignIntf, DesignEditors

When i build my package, i get the error

File not found: 'DockForm.dcu'

When I add "designide.dcp" to the "requires" section of the package, it builds and compiles just fine.

HOWEVER, when i add the component to a new project (in design time, it works. I can change all the properties, etc......BUT, it does NOT work in runtime. When i run the application with the component on the main form, i once again get the " "File not found: 'DockForm.dcu'" error

please help

thanks

like image 870
IElite Avatar asked Nov 26 '10 17:11

IElite


1 Answers

You're not allowed to use any of the Design* units in your runtime code. It's for use at designtime in the IDE only, and can't be linked in to your own application. That's why the .DCUs aren't found; they're not provided, and their functionality is provided in the designtime only packages in the IDE itself.

like image 54
Ken White Avatar answered Oct 18 '22 02:10

Ken White