FMX.Ani.TAnimation.OnProcess

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnProcess: TNotifyEvent read FOnProcess write FOnProcess;

C++

__property System::Classes::TNotifyEvent OnProcess = {read=FOnProcess, write=FOnProcess};

Properties

Type Visibility Source Unit Parent
event public
FMX.Ani.pas
FMX.Ani.hpp
FMX.Ani TAnimation

Description

The event handler called during the processing of an animation.

OnProcess gets called repeatedly while the value controlled by the animation is changing. If the animation changes the appearance of the parent object, the parent object is automatically repainted. If processing inside of OnProcess causes painting outside of the parent's bounding box, call the form's Invalidate method.

OnProcess is the correct place to monitor and respond to changes in an animation. Use OnProcess instead of the parent's OnPaint event.

Sender is the form to which the TAnimation and its parent object belong.

Code Examples