Hi,
I recently upgraded to Delphi 10.1 Berlin.
After upgrading the OnFormCloseQuery-Event of a Firemonkey-Form dos not work anymore.
To reproduce the error simply:
1. create a blank Firemonley Desktop-Application
2. create a second form
3. in the OnFormCloseQuery event-proc of the second form set "canClose := False" to prevent the form from closing
4. drop a button on the first (main) form
5. in the OnClick-event of the button, create the second form and call "ShowModal" to display the form.
6. destroy the second form after showModal.
7. run the application
Now you can observe that the second form can be closed without any error.
The CanClose := False is simply ignored.
We use this feature in multiple applications very excessive to ask the "Close window without saving?" question.
So this is definitely a show stopper!! It renders 10.1 Berlin useless.
Will this be fixed in the near future?
Greetings
A. Hoppe