[Lazarus] D7 compatibility in component definition concerning TPage
Martin Grajcar
maaartinus at gmail.com
Fri Nov 6 18:23:17 CET 2015
I've tried to unify some Lazarus and D7 sources and succeeded except for
one thing:
TYPE TMyForm = CLASS(TForm)
{$IFDEF FPC}
SomePage: TPage;
{$ENDIF}
END;
Delphi parses it wrongly and always offers to remove the declaration.
I don't need the declaration in L, but removing it led to a class not found
error.
While in LFM the form looks like
object SomeBook: TNotebook
object SomePage: TPage
end;
end;
there's just
object SomeBook: TNotebook
object TPage
end;
end;
in Delphi. I modified it to look like L, but it changed nothing.
Any idea?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20151106/1de71619/attachment-0002.html>
More information about the Lazarus
mailing list