ios - TAniIndicator not animating while performing an action. -
in application, have actions/buttons linked queries load new forms , populate tables data. have animated spinner animate while queries load.
my current code has default taniindicator.visible/enabled properties set false , when button pressed load new form, procedure begins enabling both of taniindicator properties, however, in application, spinner never shows , faint see once queries finished , new form ready appear. ?
using delphi xe4, developing ios application.
it because perform query on main thread, , ui updates blocked while query executing. should start indicator, detach new background thread or queue, launch task on thread. once done, switch main thread , hide or stop indicator.
Comments
Post a Comment