B4A Question [Solved] How to drag panel outside CLV? - Alexander Stolte (first post)    Dec 30, 2021   (1 reaction) Solution for this:
Private objPages As Reflector
objPages.Target = xclv.sv
objPages.SetOnTouchListener("xclv_Touch")
Private Sub xclv_Touch(ViewTag As Object, Action As Int, X As Float, y As Float, MotionEvent As Object) As Boolean
'Do something
End Sub B4A Question SetOnTouchListener reports only DOWN events - Brian Dean    Dec 30, 2021   (1 reaction) When I use this code to replace the usual B4A touch event handler ...
Dim rf As Reflector
rf.Target = pnlOne
rf.SetOnTouchListener("pnlOne_Touch")
. . .
. . .
Sub pnlOne_Touch (viewtag As Object, action As Int, X As Float, Y As Float, motionevent As Object) As Boolean
... B4A Question Extra views event ? - Semen Matusovskiy (first post)    Aug 30, 2019   (1 reaction) To find a view, which you touched, requires nothing. Use SetOnTouchListener method of Reflector.
For example:
Dim reflectorInstance As Reflector
...
reflectorInstance.SetOnTouchListener ("MyLabel_Touch")
Inside subroutine MyLabel_Touc B4A Question slow and fast _touch events - Erel (first post)    Aug 22, 2017   (1 reaction) Use Reflector.SetOnTouchListener instead of Touch event (https://www.b4x.-between-reflection-ontouchevent-and-panel_touch.44711/#content). B4A Question B4XComboBox not hiding keyboard when user goes to select item. - Erel (first post)    Aug 22, 2024   (3 reactions) Better solution: Private Sub AddTouchEventToSpinner(Spinner As Spinner) Dim r As Reflector r.Target = Spinner r.SetOnTouchListener("Spinner_Touch") End Sub Private Sub Spinner_Touch (ViewTag As Object, Action As Int, X As Float, Y As Float, MotionEvent As Object) As Boolean If Act B4A Question Resolution problem - Erel (first post)    Oct 04, 2016   (1 reaction) Try to use Reflector.SetOnTouchListener instead of the standard Touch event. It is faster. You can see an example here: https://www.b4x.-are-soon-coming.18395/#content B4J Question How? Correct crossplatform mouse object moving (dragging) by _Touch event - Erel (first post)    Apr 28, 2024   (1 reaction) #if B4A Dim r As Reflector r.Target = mRoot r.SetOnTouchListener("mRoot_Touch") #end if End Sub #if B4A Private Sub mRoot_Touch (o As Object, ACTION As Int, x As Float, y As Float, motion As Object) As Boolean #else Private Sub mRoot_Touch (Action As Int, X As Float, Y As Float) #e B4A Question button up down event problem - Jerez (first post)    Sep 11, 2015   (2 reactions) Hi, i've fixed the problem with: Dim myButton As Reflector myButton.Target = Button1 myButton.SetOnTouchListener("myButton") Sub myButton(ViewTag As Object, Action As Int, X As Float, Y As Float, MotionEvent As Object) As Boolean Select Case Action Case 0: 'Press Italian [RISOLTO] Movimento oggetto non fluido - LucaMs (first post)    Apr 05, 2018   (1 reaction) Dim r As Reflector
r.Target = Panel1
r.SetOnTouchListener("Panel1_Touch") B4A Question Button pressed property - Spavlyuk (first post)    Feb 22, 2022 Use SetOnFocusListener to detect ACTION_DOWN/ACTION_UP: https://www.b4x.com/android/help/reflection.html#reflector_setontouchlistener Page: 1   2   3   4   5   6   7   Powered by ColBERT |