P pamoxi Member Licensed User Longtime User Feb 9, 2012 #1 I have the next code: Code: Copy Sub Globals Dim sch As EditText Dim pad As Panel End Sub Sub Activity_Create(FirstTime As Boolean) sch.InputType = sch.INPUT_TYPE_NONE End Sub Sub sch_click pad.Visible = True End Sub The panel is not visible at start, and is a custom keyboard. I have to touch twice in the sch EditText to show the panel. How i make to show the panel with one touch in the EditText?
I have the next code: Code: Copy Sub Globals Dim sch As EditText Dim pad As Panel End Sub Sub Activity_Create(FirstTime As Boolean) sch.InputType = sch.INPUT_TYPE_NONE End Sub Sub sch_click pad.Visible = True End Sub The panel is not visible at start, and is a custom keyboard. I have to touch twice in the sch EditText to show the panel. How i make to show the panel with one touch in the EditText?
klaus Expert Licensed User Longtime User Feb 9, 2012 #2 By default, the EditText view doesn't have a Click event in B4A. You should use the FocusChanged event, and test when HasFocus = True. Best regards. Upvote 0
By default, the EditText view doesn't have a Click event in B4A. You should use the FocusChanged event, and test when HasFocus = True. Best regards.
P pamoxi Member Licensed User Longtime User Feb 10, 2012 #3 Obviously have a click event, because the code works, but not like I wanted. I solved the problem with the FocusChanged event. thanks Upvote 0
Obviously have a click event, because the code works, but not like I wanted. I solved the problem with the FocusChanged event. thanks