<p style="padding:0 0 0 0; margin:0 0 0 0;">Yes, files are unit2.pas and unit2.lfm so you must manually rename the class and the form.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">I tried to rename the second Form1 to Form2 in Object Inspector but it automatically changed line</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">Application.CreateForm(TForm1, Form1);</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">to</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">Application.CreateForm(TForm2, Form2); in ProjectD7.lpr</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">Buit this line autocreates the first Form1!</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">So it's a little mess. Anyway, Lazarus shouldn't create two TForm1 classes in one project.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">V.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">______________________________________________________________<br />
> Od: "John Landmesser via lazarus" <lazarus@lists.lazarus-ide.org><br />
> Komu: lazarus@lists.lazarus-ide.org<br />
> Datum: 24.02.2023 22:26<br />
> Předmět: Re: [Lazarus] converted Delphi 7 project: add new form not possible?<br />
></p>
<div class="moz-cite-prefix">Am 24.02.23 um 22:21 schrieb Vojtěch Čihák via lazarus:</div>
<blockquote cite="mid:20230224222128.BD8E3992@atlas.cz">
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">Hi,</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"> </p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">it is my new experience with Delphi project convertor.</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">I noticed that:</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">The converted unit1 has:</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"> TForm1 = class(TForm)</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"> ListBox1: TListBox;</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"> Button1: TButton; </p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"> ....</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">And when I add a new form, i.e. unit2, it has also</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">TForm1 = class(TForm)</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"> private</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"> ....</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"> </p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">Normally (common Lazarus project) it creates unit2 + Form2.</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"> </p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">Vojtěch</p>
</blockquote>
<p style="padding:0 0 0 0; margin:0 0 0 0;">That is correct, but when you are saving the new form you can give it new names?!</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<blockquote cite="mid:20230224222128.BD8E3992@atlas.cz">
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"> </p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">______________________________________________________________<br />
> Od: "John Landmesser via lazarus" <a href="mailto:lazarus@lists.lazarus-ide.org"><lazarus@lists.lazarus-ide.org></a><br />
> Komu: <a href="mailto:lazarus@lists.lazarus-ide.org">lazarus@lists.lazarus-ide.org</a><br />
> Datum: 24.02.2023 21:51<br />
> Předmět: Re: [Lazarus] converted Delphi 7 project: add new form not possible?</p>
><br />
> John Landmesser<br />
><br />
<br />
-- <br />
_______________________________________________<br />
lazarus mailing list<br />
<a href="mailto:lazarus@lists.lazarus-ide.org">lazarus@lists.lazarus-ide.org</a><br />
<a href="https://lists.lazarus-ide.org/listinfo/lazarus">https://lists.lazarus-ide.org/listinfo/lazarus</a><br />
<br />
<fieldset class="moz-mime-attachment-header"></fieldset></blockquote>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<br />
<br />
----------<br />
<br />
-- <br />
_______________________________________________<br />
lazarus mailing list<br />
lazarus@lists.lazarus-ide.org<br />
<a href="https://lists.lazarus-ide.org/listinfo/lazarus">https://lists.lazarus-ide.org/listinfo/lazarus</a><br />