Dear experts,
I just created a form within bpl project and place it on repository, named AncForm. When I made its descendant in a new project (program Inheritance1) named DecForm. Normally, AncForm will be included in the new project automatically when DecForm just inherited from AncForm.
program Inheritance1;
{$R *.res}
uses
Forms,
cAncForm in 'cAncForm.pas' {AncForm}, //-----> Ancestor ..... Line A
uDecForm in 'uDecForm.pas' {DecForm}; //-----> Descendant ..... Line B
begin
Application.Initialize;
Application.CreateForm(TDecForm, DecForm);
Application.Run;
end.
The question is: is there any way to link the DecForm to AncForm within this project without the presence of "Line A"? I mean the AncForm is not visually linked to project but still be able to provide reference to DecForm within IDE, without "error creating form...".
I hope there is a way to fully wrap the ancestor inside BPL.
I would gratefully thanks for any idea.