Zitat von Roland Turcan <[EMAIL PROTECTED]>:

> Hello lazarus project!
>
> I am porting our application from Delphi 7 to Lazarus and I did the
> following:
>
> 1. Used the DFM to LFM converter
> 2. Removes {$*.DFM}
> 3. Opened all "Form"s to remove all unnecessary properties from LFM
> files.
> 4. Added {$I UnitName.lrs} into initialization
>
> but some forms don't call their FormCreate constructor, but I don't
> know what could be the reason. The LPR creates forms with:
>
>     ...
>     Application.CreateForm(TMyDlg, MyDlg);
>     ...
>
> I have checked:
>
> 1. LFM contains:
>
>      object MyDlg: TMyDlg
>        OnCreate = FormCreate
>
> 2. LRS contains:
>
>    ... 'OnCreate'#7#10'FormCreate' ...
>
>
> Does anybody have any suggestion what else to check?

Check if the .lrs file is executed. For example add a writeln in the first line
of a lrs (under windows: turn the -WG switch off and start in a console to see
the output).


Mattias

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

Reply via email to