Private Sub mButton_Click
Dim Duration As Int = 50
Dim Offset As Float = 1.05
Wait For (Animation (mBase, Duration, mBase.Left * Offset, mBase.Top * Offset)) Complete (Dummy As Boolean)
Wait For (Animation (mBase, Duration, mBase.Left / Offset, mBase.Top / Offset)) Complete (Dummy As Boolean)
CallSub(mCallBack, mEventName & "_Click")
End Sub
Private Sub Animation (VW As View, duration As Long, X As Int, Y As Int) As ResumableSub
VW.SetLayoutAnimated(duration, X, Y, VW.width, VW.Height)
Sleep(duration)
Return True
End Sub