Mark Morgan Lloyd <markmll.laza...@telemetry.co.uk> hat am 31. Januar 2013 um
12:39 geschrieben:
> Mattias Gaertner wrote:
> > Hans-Peter Diettrich <drdiettri...@aol.com> hat am 31. Januar 2013 um 11:45
> > geschrieben:
> >> Mark Morgan Lloyd schrieb:
> >>
> >>>>> When the program runs, the form is created and displayed and the
> >>>>> modal cancel button works, but none of the other events fire in
> >>>>> response to user actions. This is with Lazarus trunk + 2.6.0.
> >>> I can't duplicate it with a newly-created test program. However I notice
> >>> that this program has implementation ... {$R *.lfm} in (at least)
> >>> those units with forms, while the program giving the problem doesn't.
> >> Event handlers are installed from the LFM file. If you don't have one,
> >> or don't $Read it, no handlers will be hooked in during creation. Also
> >> all other properties will have default values, then.
> >
> > TFrame raises an exception if no resource was found.
> >
> > Probably the program uses the old .lrs files {$i frameunit.lrs}
>
> Yes, found 'em. What should I be doing for new versions of Lazarus:
> removing the $i and inserting $r? If so is there a conditional that will
> allow me to automate it depending on version?

If you need to support very old Lazarus versions, then keep using lrs files.
The $R resources are just nicer and need less memory.
You can even mix lrs and $R resources in programs.
This has nothing to do with your bug. That means: unless you silently catch the
TFrame exception.

Mattias

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to