On Tue, Aug 09, 2005 at 07:39:45PM -0400, Andrew Haines wrote:
> Tom Verhoeff wrote:
>
> >Next question: where is the code that loads the .lfm file and assigns
> >FOnCreate upon reading 'OnCreate =' from .lfm ? Where/when is that code
> >activated? How could that go wrong?
>
> As far I know the lfm is not actually a valid freepascal file, but is
> converted into a file with the same name but with the .lrs extension
> which is included with the {$I myunit.lrs} directive.
>
> at the bottom of your unit is there a section that looks like this:
>
> initialization
> {$I unit1.lrs}
>
> where unit1 = the name of the unit
>
> if this is not there then that could cause what you've stated, and more
> bad things
This was indeed not the case, and adding it resolved the problem. Thanks!
I converted my unit through Tool->Convert Delphi unit to Lazarus unit.
Is insertion of that initialization code something that can go wrong?
The code now runs "somewhat" :-). Windows are shown ... but the next
issue has already popped up. Will get back later.
Tom
--
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE: +31 40 247 41 25 | Eindhoven University of Technology
FAX: +31 40 247 54 04 | PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/ | The Netherlands
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives