I have some forms inherited from a TMyForm
(TMyForm
is a 3rdparty component with source code form).
When I open in the IDE my forms inherited from TMyForm I have:
Error creating form: Ancestor for 'TMyForm ' not found.
The workaround is to open the TMyForm
unit in the IDE and then try top open my inherited forms.
But how can I avoid that Delphi gives this error and is able to open my forms even if TMyForm
is not opened in the IDE?
You need to have the parent form opened in the IDE or added to the project, there's no workaround, unfortunately. Over here: Register custom form so I can inherit from it from multiple projects, without copying the form to the Object Repository folder I attempted lots and lots of things, without success.
My Workaround. There are several ways:
There is automatically opens all the child forms:
Ticket, was created about 10 years ago: http://qc.embarcadero.com/wc/qcmain.aspx?d=8376
Here you can download the version for Delphi XE2: https://bitbucket.org/hemn/autoopenunit
I recommend it!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With