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