You can catch EditText_Click event, although it is not listed. However the user may find it a bit strange. You may want to use a button or at least a label.
You can catch EditText_Click event, although it is not listed. However the user may find it a bit strange. You may want to use a button or at least a label.
Hi Erel,
but if I want to use an EditText, I set up the event on click, but I have to do this twice, and I want that when I click, I open the module immediately.
You can use "FocusChanged". I use it in combination with "Click".
Be something like:
B4X:
...
dim edt1 as EditText
edt1.Initialize("edt1")
...
Sub edt1_FocusChanged (HasFocus As Boolean) 'if focus change
If HasFocus = True Then
...
End If
End Sub
Sub edt1_Click 'if you are in the focus
...
End Sub