[DUG] descending from TWebModule
Phil Middlemiss
phil at tumonz.co.nz
Wed Jun 8 08:22:04 NZST 2005
I have defined a class that descends from TWebModule and adds a couple
of extra methods that we will commonly use. There is no attached dfm
with it. When I create a new TWebModule and then change it's definition to:
TBrandNewModule = class(TMyWebModule)
etc
it compiles fine, but if I close the BrandNewModule unit and reopen it,
the IDE thinks that the {$R *.dfm}should be a TForm descendant and not a
TWebModule descendant, and therefore anything in the saved dfm unit that
doesn't belong on a TForm is lost and the created window is a TForm, not
a TWebModule.
Is there some trick here? It doesn't quite seem a job for the
repository, and I tried registering the TMyWebModule class aswell
without any joy.
Phil.
More information about the Delphi
mailing list