CustomForm - New Properties Not Visible in Object Inspector After Lazarus closed & re-opened
Original Reporter info from Mantis: mtrsoft
-
Reporter name: John Raycheba
Original Reporter info from Mantis: mtrsoft
- Reporter name: John Raycheba
Description:
When a form derived from a custom form containing new properties that was registered using the process described by the customform component the new properties will not be visible in the Object Inspector after Lazarus is closed and then re-opened.
Initially the new properties are visible in the Object Inspector.
Steps to reproduce:
-
Open and then install the package "appforms.lpk", which is located in the directory "C:\lazarus\components\customform\demo".
-
After Lazarus is rebuilt, open a new project.
-
Use the menu selections "File > New" to open the "New dialog".
-
Under "Custom forms" select "TAppForm" and click the OK button to create a new "TAppForm" form in the project.
-
Click on the new form and use "File > SaveAs" to save the form / unit with whatever name you like.
-
In the Object Inspector click on the "Events" tab.
-
Note that there are two new events present; namely, "AfterInitForm" and "BeforeInitForm".
-
Save the project and close Lazarus.
-
Open Lazarus.
-
Open the project that has the above mentioned TAppForm decendant form in it.
-
Click on the form and then its name in the Object Inspector.
-
Click on the "Events" tab in the Object Inspector.
-
Note that the events "AfterInitForm" and "BeforeInitForm" are not visible in the Object Inspector.
Additional information:
If the custom form has a new property and in the derived form changes its value is changed to something other than the default value before the project is saved, the non-default value will, as expected, be recorded in the lfm file.
However, after Lazarus is closed and then re-opened and the project is opened there will be an error message indicating that the (new) property is not recognized.
I have tested this using Lazarus v1.4.4 and v1.6 with the same result.
Mantis conversion info:
- Mantis ID: 30241
- OS: Win 7
- OS Build: 7
- Platform: Win 7 / 32
- Version: 1.6
- Fixed in revision: r58838 (#301ca801)
- Monitored by: » mtrsoft (John Raycheba)