Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 1963

OnFormCloseQuery not working in Delphi 10.1 Berlin anymore

$
0
0

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 


Viewing all articles
Browse latest Browse all 1963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>