From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property OnProcess: TNotifyEvent read FOnProcess write FOnProcess;


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


Type Visibility Source Unit Parent
event public
FMX.Ani TAnimation


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