Sub Sum (ParamArray intNums ())
Error description: Too many parameters.
An error occurs in the following line: 257
:257
CallSub3(mCallBack, mEventName & "_ZoomEvent", CurrentScale, CenterX, CenterY)
word: _ref
Error description: Too many parameters.
An error occurs in the following line: 257
:257
CallSub3(mCallBack, mEventName & "_ZoomEvent", CurrentScale, CenterX, CenterY)
word: _ref
B4X:
Else if Action = pnl.TOUCH_ACTION_UP Then
TouchDown = False
[B]how to CallSub4,CallSub5?CallSub(any args?:confused:[/B]
If DateTime.Now - ClickStart < ClickThreshold And DisableClickEvent = False Then
Sleep(1)
If xui.SubExists(mCallBack, mEventName & "_ZoomEvent", 3) Then
CallSub3(mCallBack, mEventName & "_ZoomEvent", CurrentScale, CenterX, CenterY)
End If
If xui.SubExists(mCallBack, mEventName & "_Click", 0) Then
CallSub(mCallBack, mEventName & "_Click")
End If
End If
B4X:
Private Sub ZoomChanged (x As Int, y As Int, ZoomDelta As Float)
Dim ivx As Float = x - pnlBackground.Left
Dim ivy As Float = y - pnlBackground.Top
ZoomDelta = Max(ZoomDelta, mBase.Width / pnlBackground.Width)
pnlBackground.SetLayoutAnimated(0, x - ivx * ZoomDelta, y - ivy * ZoomDelta, pnlBackground.Width * ZoomDelta, pnlBackground.Height * ZoomDelta)
SetImageViewLayout
UpdateScaleAndCenter
If xui.SubExists(mCallBack, mEventName & "_ZoomEvent", 3) Then
CallSub3(mCallBack, mEventName & "_ZoomEvent", CurrentScale, CenterX, CenterY)
End If
End Sub
Attachments
Last edited: