Re: form inheritance problem



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.

Please advice

"Jo Claes" <jclaes@xxxxxxxxx> wrote in message
news:4592e27d$0$30054$ba620e4c@xxxxxxxxxxxxxxxxx
Hi,

I still have my Form inheritance problem..

I have a Package with several forms ...frmStandard is the base form ...

In a new Package I create a new form ( fe frmNew) based on frmStandard
when i create a new form ( frmNew2) inherited from frmNew then constructor
Create on the base form (frmStandard) stops on inherited Create(aOwner) ;
not showing an error ;

Why ???

below a part of my constructor code ...

constructor TfrmStandard.Create(aOwner: TComponent);
begin
// here i come allways ;
inherited Create(aOwner) ;
// here i don't come anymore when i create a instance frmNew2 ..
// creating a instance of frmNew ---> no problem ..
Font.Name := 'Courier New';
Font.Size := 8;
SetCacheSettings ;
LoadFormSettings ;
if self.CacheUser = nil then self.CacheUser := TosCacheUser.Create(Self);
if self.CacheFirm = nil then self.CacheFirm := TosCacheFirm.Create(Self);
EditableFields_Clear ;
end;



.



Relevant Pages

  • Re: Renaming of enumeration constant
    ... > package X is ... I think the answer to your question is actually about inheritance. ... in which the Four_Legs value it returns is of the type Podality. ... their declaration is simpler and perhaps more obvious, ...
    (comp.lang.ada)
  • Re: Basic Explaination of OO in Ada
    ... Programming by extension does not necessarily involve inheritance. ... package Pak2 is ... access types are not necessary to achieve polymorphism; ...
    (comp.lang.ada)
  • Re: Inherited class methods and special variables
    ... > Here is some sample code that uses inherited class methods: ... inheritance but actually uses subroutine call autoloading to fake ... this will never happen or you would want to strip the package name ... the above would work since you'd be looking at the $AUTOLOAD in the ...
    (comp.lang.perl)
  • Re: The Best Way (TM) to Implement Objects
    ... Every object belongs to only one class: the object class. ... Objects have a line of single inheritance. ... rather every event is put into a map with a turn counter that ... package Object; ...
    (rec.games.roguelike.development)
  • How to run _init for all ancestor classes in diamond inheritance
    ... SolarVehicle and WheeledVehicle inherit from Vehicle, ... I want to specify a new and an _init for the base class. ... to @ISA such that the @ISA of the package in which _init is currently ... I don't *think* this problem is due to diamond inheritance per se as ...
    (comp.lang.perl.misc)