Author Topic: Moving form to auto-create fails  (Read 5115 times)

Martin V

  • Full Member
  • ***
  • Posts: 139
Moving form to auto-create fails
« on: May 28, 2010, 12:35:32 pm »

in the project options page "Forms", I have got two listboxes: "Auto-create forms" and "available forms". I want to move one form to auto-create, but when pressing OK and reopening the project options form, the old state has been restored. Saving the lpi does not save the changes. (

Is this an IDE bug or is there a general setting where I have to allow auto-created forms? Other projects do not show this behaviour. Is it possible to change this setting by editing the lpi file?

Martin V

  • Full Member
  • ***
  • Posts: 139
Re: Moving form to auto-create fails
« Reply #1 on: May 29, 2010, 03:32:07 am »
I have studied a lazarus example program (e.g. examples\dropfiles.lpi) and it seems that auto creation of forms is not stored in the lpi file, it is stored in the base pascal source file (lpr file):
Code: [Select]
  Application.CreateForm(TForm2, Form2);
  Application.CreateForm(TForm1, Form1);

My base pascal source file is very different, so that's the reason for the malfunction. I simply need to add the code by hand.


TinyPortal © 2005-2018