Hi!
I have modal forms in application. In the OnClose event I need to cancel form closing.
I check conditions and set Action := caNone but it doesn't work. Form closes anyway. I've made a testcase for demonstrate.
Testcase - ModalWinOnClose.zip
To check out - please press the "Show nonmodal form 1" button on main form, then press the "Show modal test form" button to call modal form.
If checkbox "Can close form" not checked - form should not be closed but Action := caNone is ignored
What's wrong?
Thank you in advance!