Reputation: 8043
I've created a package which contains several templates (TFrame descendants). These templates has been added to the palette. In other packages, I'm trying to use these templates but each time I add one of them, a message appear:
The following unit: %s, is needed in your project to create the template. Do you wish to add it?
mrYes:
Source file is added to the project. Furthermore, it causes the following error on compiling:
E2200 Package '%s' already contains unit '%s'
mrNo:
It's ok, but the question is asked each time I place one of my templates. Me and my collegues will use these templates alot of times and I really would like to avoid that message.
Update 1:
Here are steps to observe the described behavior:
Update 2:
I'm looking for a solution which works with Delphi 2007 and Delphi XE7.
Upvotes: 1
Views: 105
Reputation: 130
A bit more work but one that should fit your needs:
Without the packages the IDE seems to fail to recognize the units.
Upvotes: 1