Author: h.mohri
C++Builder 10.2 BCC32 can not write lambda.
So write an implementation in Invoke() with TCppInterfacedObject<>.
[crayon-68cb51d9977db443279400/]
Event prepared for calling with TThread::Synchronize().
[crayon-68cb51d9977e0017617832/]
Call TThread::CreateAnonymousThread() with a TButton event.
Place the TButton and TActivityIndicator
[crayon-68cb51d9977e1379741507/]
Build execution.
When you click the Button1, until the thread is finished "ActivityIndicator1->Animate = true";