Inheritance of TDataModule

When I try to inherit TDataModule Delphi, we consider the descendant class as a form that provides them with properties such as font and client properties. (exception "property does not exist" at runtime)

TixDataModule = class(TDataModule);

TDM = class(TixDataModule)
end;

What can I do to make it work?

+3
source share
2 answers
  • Since TixDatamodule is simply synonymous with TDatamodule, you can inherit directly from TDataModule
  • If you really want to inherit from TixDataModule, then put TixDataModule in a separate unit with your .dfm.
+2
source

Make sure all legacy components are checked inherited, not objectin dfm.

"dfm " "dfm " Alt + F12.

+5

All Articles