I'm using a simple call to TDialogServiceAsync.InputQuery()
with a single input. It just ignores both the Cancel
button and the window's X
close button.
But the Ok
button works fine.
This is my code:
uses
FMX.DialogService.Async;
procedure TForm1.Button1Click(Sender: TObject);
begin
TDialogServiceAsync.InputQuery('Title',
['Insert value'], ['bla bla'],
procedure(const AResult: TModalResult; const AValues: array of string)
begin
if Aresult = mrOk then
ShowMessage('Ok!');
if Aresult = mrCancel then
ShowMessage('Cancel!'); // this is never called
end);
end;
If I press Cancel
, the InputQuery window doesn't close, and my callback procedure is not called.
How I can make the InputQuery form close when pressing the Cancel
button?
I'm using RADStudio 10.1 Berlin.
Edit:
I made a few tests:
- On Windows 32 bit cancel button DOES NOT works
- On Windows 64 bit cancel button DOES NOT works
- On iOS 64 bit cancel button works correctly
- On Android 32 bit cancel button works correctly