C++ Builder: Refresh FireMonkey Visual Component

  

I have a problem with C++ Builder and FireMonkey. I am creating a mobile application connected with a Datasnap Rest WebService. Some requests are a little bit long so I want to display a waiting message. Here is my code:

lbl_testConnexion->Text = “Please Wait…”;
lbl_testConnexion->TextSettings->FontColor = TAlphaColorRec::Red;
this->Invalidate();

//Call to the Web Service
list<Colis>* l = WS->getListeColis(“00DP0097”);

lbl_testConnexion->Text = “Success!”;

I tried functions Form->Invalidate() and Label->Repaint() but only the last text is displayed.
What can I do to dynamically refresh the Label in my function?

Comments are closed.