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

Android UI - how show TAniIndicator during the execution of a Sqlite query.

$
0
0

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  


Viewing all articles
Browse latest Browse all 3212

Trending Articles



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