Zitat von "Juha Manninen (gmail)" <[email protected]>:

On Friday 10 September 2010 14:25:31 Mattias Gärtner wrote:
As this problem only rises when opening a dfm produced by Delphi, the
offset depends solely on the theme used by Delphi. AFAIK there are not
many combinations and only a few controls have child controls and a
notable frame. I guess one offset per class will be sufficient for 99%
of all Delphi apps.

You are still around here Mattias, good!

Yes, there were some busy weeks. Still reading all the lazarus mails ...


Now I understood better the reasoning for differences between the coordinate
systems in Delphi and Lazarus.
Rigth, it doesn't depend on Lazarus widgetset theme after all.

The remaining question is if there is need for a run-time adjustment in case
the same .dfm file is used for both Delphi and Lazarus. There could be code
added to FormCreate, enclosed in {$IFDEF FPC}, to move the controls.
I will implement it later if needed.

{$IFDEF LCL}

I don't know if there is a need for using one dfm by both.

Mattias



--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to