I think this is a mistake. There are many modal type errors in FireMonkey, and hopefully they will fix them soon. Currently, even modal forms are not modal.
For your problem, I have a workaround for Windows, but you might not like this.
You need to fix the following line in the TPlatformWin.DialogOpenFiles () method in FMX.Platform.Win.
In with OpenFile do
change:
hwndOwner := 0;
For this:
hWndOwner := FmxHandleToHWND(Application.MainForm.Handle);
The function uses the Windows API call GetOpenFileName
, even if it is deprecated in Vista and later. If the owner descriptor is passed, the dialog is modal, otherwise it is not.
You might want to present this as an error for qc.embarcadero.com along with a workaround.
source share