[Lazarus] Can't add new form to Lazarus App

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Sep 29 21:40:13 CEST 2016


On Thu, 29 Sep 2016 14:26:02 -0500
"Terry A. Haimann" <terry at haimann.us> wrote:

> On Thu, 2016-09-29 at 13:17 +0200, Mattias Gaertner via Lazarus wrote:
> > On Thu, 29 Sep 2016 05:59:49 -0500
> > "Terry A. Haimann" <terry at haimann.us> wrote:
> >   
> > >[...]  
> > > > What means messed up? It's an empty form, isn't it?    
> > > 
> > > The new form and it's source will not compile unless i comment out the:
> > > 
> > > {$I unit1.lrs} 
> > > 
> > > I tried renaming unit1 to the new unit name, but it did not like the lrs
> > > file.  It refused to compile.  
> > 
> > How did you create the form?
> > Can you post the first few lines of the unit1.lrs?
> > 
> > Mattias  
> 
> I created the form by clicking on NewForm and then I tried to rename it
> from the Object Inspector.  I am running Lazarus 1.2.4  This app has
> probably been used by several versions of Lazarus.
> 
> Terry
> 
> 
> It renamed it to the new filename:
> 
> { This is an automatically generated lazarus resource file }
> 
> LazarusResources.Add('TStRschForm','FORMDATA',[
> 
> 'TPF0'#11'TStRschForm'#10'StRschForm'#4'Left'#3#235#0#6'Height'#3#240#0#3'Top'
> 
> +#3#145#0#5'Width'#3#250#2#7'Caption'#6#10'StRschForm'#12'ClientHeight'#3#240
> 
> +#0#11'ClientWidth'#3#250#2#10'LCLVersion'#6#7'1.2.4.0'#0#6'TLabel'#6'Label1'
> 
> +#4'Left'#2#24#6'Height'#2#15#3'Top'#2#30#5'Width'#2#23#7'Caption'#6#4'Test'
>   +#11'ParentColor'#8#0#0#0
> ]);

Ok. So it is *not* an empty form.

Please post the whole unit and the compiler error you get.


Mattias


More information about the Lazarus mailing list