Hello I'm trying to make an android app with SQLite. I want enable TAniIndicator during the execution of a query. The query make a select that work for some seconds.
This is the code:
... MaterQry: TFDQuery;
procedure TForm1.CercaBtnClick(Sender: TObject);
begin
AniIndicator1.Enabled := True;
AniIndicator1.Visible := True;
MaterQry.Close;
MaterQry.ResourceOptions.CmdExecMode := amNonBlocking;
MaterQry.Open;
end.
procedure TForm1.MaterQryAfterOpen(DataSet: TDataSet);
begin
AniIndicator1.Enabled := False;
AniIndicator1.Visible := False;
end;
The result is that AniIndicator1 is freezed until the query work. There are a way to show an 'hourglass' or other until the query finish?
Many thanks