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

Terry A. Haimann terry at haimann.us
Thu Sep 29 12:59:49 CEST 2016


On Thu, 2016-09-29 at 09:57 +0200, Mattias Gaertner via Lazarus wrote:
> On Wed, 28 Sep 2016 16:49:15 -0500
> "Terry A. Haimann via Lazarus" <lazarus at lists.lazarus-ide.org> wrote:
> 
> > On an old Lazarus app (Linux) today I tried to add a form and got the
> 
> Do you mean add a new empty form or add an existing form? 

A new form.
> 
> > following:
> > 
> > http://www.haimann.us/Images/Test.png
> 
> I recommend to adapt the $mode and $H directive in the main source
> (usually projectname.lpr).
> 
>  
> > After selecting this option, the new form appears messed up.
> 
> 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.

> 
> 
> >  At the
> > botton of the unit.pas file the following is displayed:
> > 
> > initialization
> >   {$I unit1.lrs} 
> > 
> > Even after I save the unit under another name.   After compilation when
> > the form is displayed via a show.modal, the form is blank.
> > Is there someway to repair this app
> 
> How do you create the form?
> 
> Mattias




More information about the Lazarus mailing list