Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-11

D7 compatibility in component definition concerning TPage

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Grajcar

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.freepascal.org/pipermail/lazarus/attachments/20151106/1de71619/attachment.html>

Reply by email