FMX Update control while button is exectuing

  

I need to update FMX UI, while button event is working.
I have something like this:

procedure TfrmMain.Buttonclick;
begin
Show;
Update(‘xxxx’);
Do something
Update(‘yyy’);
Do something
hide;
end;

procedure TfrmMain.show;
begin
panel1.visible:=true;
end;

procedure TfrmMain.hide;
begin
panel1.visible:=false;
end;

procedure TfrmMain.update(txt:string);
begin
label1.caption:=txt;
end;

Of course this is only an example.

My question is: how to update UI while button is executing?

In Berlin, Tokyo everything was fine. In RIO UI is not updating.

Comments are closed.