yangyxd / FMXUI

FMX跨平台基础UI库
MIT License
261 stars 96 forks source link

Add Support for getting the event when animation completes in TFrameView #34

Closed marlonnardi closed 2 years ago

marlonnardi commented 2 years ago

We currently have the following events:

 property OnShow: TNotifyEvent read FOnShow write FOnShow;
 property OnHide: TNotifyEvent read FOnHide write FOnHide;
 property OnFinish: TNotifyEvent read FOnFinish write FOnFinish; 
 property OnReStart: TNotifyEvent read FOnReStart write FOnReStart;
 property OnFree: TNotifyEvent read FOnFree write FOnFree;

If possible, add a new event that fires when the frame's animation completes.

KngStr commented 2 years ago

You can do this with

procedure Show(Ani: TFrameAniType; AOnFinish: TNotifyEventA);

marlonnardi commented 2 years ago

You can do this with

procedure Show(Ani: TFrameAniType; AOnFinish: TNotifyEventA);

for this case yes, I use it in some cases.

However I need to know about this event inside the frame, and not in the call.

I call my screen with the method: image

and I need to know when the animation event ended inside my frame: image

image

KngStr commented 2 years ago

Can I test with new methods?

marlonnardi commented 2 years ago

Can I test with new methods?

Its very very perfect, no lag, no crashes, extremely fluid as it has to be. tested in Windows and IOS.

perfect

KngStr commented 2 years ago

OK. Thanks for testing.