<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
<title></title>
</head>
<body>
<p style="margin: 0px;"><span> </span></p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px 5px 0px;">
michael.vancanneyt@wisa.be hat am 2. Februar 2011 um 11:49 geschrieben:<br/>
<br/>
><br/>
><br/>
> On Wed, 2 Feb 2011, Paul Ishenin wrote:<br/>
><br/>
> > Hello, Lazarus mailing list.<br/>
> ><br/>
> > I've changed the behavior of TCustomForm.Create constructor. Now it raises an<br/>
> > exception if your TCustomForm descendant has no resource.<br/>
> ><br/>
> ><br/>
> > The behavior is controlled by a global variable *RequireDerivedFormResource*<br/>
> > which is set to True for all new applications created by the IDE and is set<br/>
> > to False by default. If you for some reason want the old behavior just remove<br/>
> > "RequireDerivedFormResource := True" line from .lpr file of your new<br/>
> > application.<br/>
><br/>
> I think you should do the opposite: The default should be 'True', and users<br/>
> should disable this explicitly.
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">This would break existing projects without need.</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px 5px 0px;">
> That would also be Delphi compatible.
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">That's why it is enabled for new projects. Don't forget this is just a warning that something might be missing. It is not a necessary bug fix.</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px 5px 0px;">
> There is one caveat: The TForm class itself should not search for a resource,<br/>
> only TForm Descendants should do this.
</div><br/>
Huh?<br/>
That was always so.<br/>
<br/>
<br/>
Mattias<br/>
<br/>
</body>
</html>