EditText Click

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
How can I open a module, with a click on an EditText? :sign0085:
Thanks
 

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
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.
 
Upvote 0

JoanRPM

Active Member
Licensed User
Longtime User
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

Regards.
 
Upvote 0
Top