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

