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