TTMSFNCWaitingIndicator.Active Property
Starts or stops the waiting animation; True activates the animation timer.
API unit family: TMSFNCWaitingIndicator
Declaring type: TTMSFNCWaitingIndicator
Inherited from: TTMSFNCCustomWaitingIndicator
Type: Boolean
Syntax
property Active: Boolean;
__property bool Active = {read=FActive, write=SetActive, nodefault};
Usage examples
Show a waiting indicator during work
Enables the parent overlay, starts the animation, and stops it when the operation finishes.
procedure TForm1.StartLoading;
begin
TMSFNCWaitingIndicator1.OverlayParent := True;
TMSFNCWaitingIndicator1.AnimationSpeed := 1.0;
TMSFNCWaitingIndicator1.Active := True;
end;
procedure TForm1.FinishLoading;
begin
TMSFNCWaitingIndicator1.Active := False;
end;
void __fastcall TForm1::StartLoading()
{
TMSFNCWaitingIndicator1->OverlayParent = true;
TMSFNCWaitingIndicator1->AnimationSpeed = 1.0;
TMSFNCWaitingIndicator1->Active = true;
}
void __fastcall TForm1::FinishLoading()
{
TMSFNCWaitingIndicator1->Active = false;
}