Re: form inheritance problem



Jo Claes wrote:

After some trial and error I've put all the forms in the same package
it worked fine untill i recompiled the package for the xx-time. Since
then the problem has returned. The strange thing is that I didn't
change any letter on the source code of that form. I was creating a
new form in the same package.

Why this happens.

Delphi has problems with forms in packages (but not in normal
applications), and even more with inherited forms. They don't even
display as forms, just as units. I had to re-register them (i.e. put
them in the palette) in the correct order each time I changed
something, until I simply created a new app in the same project group
which contained all the forms (no more, it just includes them). Since
then, no problems anymore.

So I suggest you add a new project to your project group, and simply
add all the forms to that project. That will keep Delphi happy.

--
Rudy Velthuis http://rvelthuis.de

"When choosing between two evils, I always like to try the one
I've never tried before." -- Mae West (1892-1980)
.



Relevant Pages

  • Re: Keep from updating DOF
    ... e> I have been having a problem with a Project Group. ... e> I have all my packages source sode controlled by VSS. ... If I am working on one package, ... Illya Kysil, software developer ...
    (borland.public.delphi.ide)
  • Re: Keep from updating DOF
    ... > e> I have been having a problem with a Project Group. ... including the DOF. ... > e> If I open another package in the group and do anything like ... I do not have and will not use FreeVCS. ...
    (borland.public.delphi.ide)
  • Keep from updating DOF
    ... I have been having a problem with a Project Group. ... I have all my packages source sode controlled by VSS. ... am working on one package, I check it out, including the DOF. ... tries to update THAT projects DOF and it is not checked out so ...
    (borland.public.delphi.ide)
  • Re: inherited forms in packages
    ... > I have another package which inherits forms from the above package. ... Create a project group and add the .dpk for the parent package and the .dpk ... Super-Smart Syntax Highlighting ... Fast, powerful code templates ...
    (borland.public.delphi.ide)
  • Re: Delphi 7 Ent. Access Violation
    ... > I have a WinXP machine running Delphi 7 that does not even have ... if u make changes to a source unit contained in an installed package you ... Or use a project group and add ...
    (borland.public.delphi.non-technical)