Bug? Button_Click

D

Deleted member 103

Guest
Hi,

in Android and iOS I have this sub.
B4X:
Sub Button_Click
    'do something
End Sub
If long or short pushed Android this button, the content will be after the release always executed.
On iOS, the content is only executed if pressed briefly, but when long-pressed, nothing happens.
Is this a mistake?
 
D

Deleted member 103

Guest
Not sure that I understand...
You also need not always understand everything.:D

No, fun side, I solved the problem in the I use a panel with panel_Touch.
B4X:
Sub pnlStart_Touch(Action As Int, X As Float, Y As Float)
    Select Action
        Case pnlStart.ACTION_DOWN
            If btnStart.Enabled Then SetBackgroundImage(btnStart, "Disabled.png","Disabled.png")
        Case pnlStart.ACTION_UP
            If btnStart.Enabled Then
                btnStart_Click
                SetBackgroundImage(btnStart, "Enabled.png","Disabled.png")
            End If
    End Select
End Sub
 
Top