Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hemulgm/stackanimate

FMX stack animate
https://github.com/hemulgm/stackanimate

component delphi firemonkey fmx

Last synced: about 2 months ago
JSON representation

FMX stack animate

Awesome Lists containing this project

README

        

# StackAnimate

```pascal
procedure TForm2.FormCreate(Sender: TObject);
begin
StackAnimate := TStackAnimate.Create(Layout1);
StackAnimate.AnimationDuration := 0.1;
Layout1.AddObject(StackAnimate);
StackAnimate.UpdateList;
StackAnimate.OnChangeOrder := FOnChangeOrder;
StackAnimate.OnEndOrder := FOnEndOrder;
StackAnimate.HookAllControls;
end;

procedure TForm2.FOnChangeOrder(Sender: TObject);
begin
Memo1.Lines.Add('FOnChangeOrder');
end;

procedure TForm2.FOnEndOrder(Sender: TObject; WasChanged: Boolean);
begin
if WasChanged then
Memo1.Lines.Add('WasChanged ' +
StackAnimate.Items[StackAnimate.LastChange.NewIndex].Name + ' to ' +
StackAnimate.LastChange.NewIndex.ToString);
end;
```

![Sample](https://github.com/HemulGM/StackAnimate/raw/main/media/ezgif-5-e5854c1030.gif)