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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.