Something strange is happening...
I'm making a more complex TForm behaviour, therefore I just create a child of TForm and it works fine.
BUT if I create a child of a child of TForm I get an error on loading the project:
Unable to find the component class "TSomeForm".
It is not registered via RegisterClass and no lfm was found.
It is needed by unit: ...
I.e. this code loads fine:
type TForm_1 = class(TForm)
public
myvar1: integer;
end;
type
TForm1 = class(TForm_1)
private
public
end;
and this one gives an error on each project open (actually on first showing of form's window):
type TForm_1 = class(TForm)
public
myvar1: integer;
end;
type TForm_2 = class(TForm_1)
public
myvar2: integer;
end;
type
TForm1 = class(TForm_2)
private
public
end;
TForm1 was automatically created in a "normal" way (File>New>Application). Maybe I've messed up something with resource file by doing this way?
Minimal example attached.
P.S. Everything works perfectly if I ignore the error. It would just reappear at each form window first opening.
Lazarus 1.8.0RC3, FPC3.0.3, Debian Linux