[Lazarus] converted Delphi 7 project: add new form not possible?
Vojtěch Čihák
vojtech.cihak at atlas.cz
Fri Feb 24 22:51:31 CET 2023
Yes, files are unit2.pas and unit2.lfm so you must manually rename the class and the form.
I tried to rename the second Form1 to Form2 in Object Inspector but it automatically changed line
Application.CreateForm(TForm1, Form1);
to
Application.CreateForm(TForm2, Form2); in ProjectD7.lpr
Buit this line autocreates the first Form1!
So it's a little mess. Anyway, Lazarus shouldn't create two TForm1 classes in one project.
V.
______________________________________________________________
> Od: "John Landmesser via lazarus" <lazarus at lists.lazarus-ide.org>
> Komu: lazarus at lists.lazarus-ide.org
> Datum: 24.02.2023 22:26
> Předmět: Re: [Lazarus] converted Delphi 7 project: add new form not possible?
>
Am 24.02.23 um 22:21 schrieb Vojtěch Čihák via lazarus:Hi,
it is my new experience with Delphi project convertor.
I noticed that:
The converted unit1 has:
TForm1 = class(TForm)
ListBox1: TListBox;
Button1: TButton;
....
And when I add a new form, i.e. unit2, it has also
TForm1 = class(TForm)
private
....
Normally (common Lazarus project) it creates unit2 + Form2.
Vojtěch
That is correct, but when you are saving the new form you can give it new names?!
______________________________________________________________
> Od: "John Landmesser via lazarus" <lazarus at lists.lazarus-ide.org> <lazarus at lists.lazarus-ide.org>
> Komu: lazarus at lists.lazarus-ide.org <lazarus at lists.lazarus-ide.org>
> Datum: 24.02.2023 21:51
> Předmět: Re: [Lazarus] converted Delphi 7 project: add new form not possible?
>
> John Landmesser
>
--
_______________________________________________
lazarus mailing list
lazarus at lists.lazarus-ide.org <lazarus at lists.lazarus-ide.org>
https://lists.lazarus-ide.org/listinfo/lazarus <https://lists.lazarus-ide.org/listinfo/lazarus>
----------
--
_______________________________________________
lazarus mailing list
lazarus at lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus <https://lists.lazarus-ide.org/listinfo/lazarus>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20230224/e833f44a/attachment.htm>
More information about the lazarus
mailing list