I attached a small project that shows the problem. The problem appeared between October 2012 and sometime in 2013 (we verified using old versions of our software).
Here's how to reproduce the problem :
- Start the application then select the Layout View Tab. You'll see a view with 4 fields.
- Click the Customize Button at the bottom of the form. This will open the standard Customize dialog.
- Click the View Layout Tab. You'll see the view but this time, it is empty.
It happens only when the layout is loaded from a .INI or whatever other RestoreFrom…() procedure.
Stephan
Hello Stephan,
Thank you for your demo. I have reproduced this behavior. From what I gather, the Grid.ini file is a layout that was saved a long time ago. Would you please check whether or not it is possible to reproduce this issue with the layout saved/loaded with VCL 14.2.3? I was not able to reproduce this scenario on my side.
The layout saved in the .INI file was saved yesterday, with the sample application that I sent. The only difference is the fact that it was created with the previous version (VCL 14.2.2).
Look at the code, you'll see that the .INI is saved and loaded when the program is executed.
I was able to reproduce this behaviour with version 14.2.3. Here are the steps :
Very important note !
If, and only if you add the Text field, it'll work. But if you add any or all the other fields, it won't work.
Thank you very much for this information. It is really important, and I am glad that I asked you about your version number. I have forwarded this ticket to our developers for research.