Ricky D Well-Known Member Licensed User Longtime User Oct 24, 2017 #1 Is there a way to trap key presses in an edittext?
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2017 #2 Which key? The TextChanged event will be raised when the text changes. Upvote 0
Star-Dust Expert Licensed User Longtime User Oct 25, 2017 #3 Ricky D said: Is there a way to trap key presses in an edittext? Click to expand... This Code: Copy Sub EditText1_TextChanged (Old As String, New As String) ' old = old text insert ' new = actual text End Sub Upvote 0
Ricky D said: Is there a way to trap key presses in an edittext? Click to expand... This Code: Copy Sub EditText1_TextChanged (Old As String, New As String) ' old = old text insert ' new = actual text End Sub
Ricky D Well-Known Member Licensed User Longtime User Oct 25, 2017 #4 Star-Dust said: This Code: Copy Sub EditText1_TextChanged (Old As String, New As String) ' old = old text insert ' new = actual text End Sub Click to expand... In Windows and I wrote a full autocomplete code so I guess I can't in Android Upvote 0
Star-Dust said: This Code: Copy Sub EditText1_TextChanged (Old As String, New As String) ' old = old text insert ' new = actual text End Sub Click to expand... In Windows and I wrote a full autocomplete code so I guess I can't in Android
Ricky D Well-Known Member Licensed User Longtime User Oct 25, 2017 #6 The autocomplete fills the first entry as I type. I type a Albany Creek and Albion pop up. Type A all a's show, first one is A then lbany Creek is selected. On each keypress it drills down and adjusts the list. It's the selection of the the remaining part that looks impossible to do here Upvote 0
The autocomplete fills the first entry as I type. I type a Albany Creek and Albion pop up. Type A all a's show, first one is A then lbany Creek is selected. On each keypress it drills down and adjusts the list. It's the selection of the the remaining part that looks impossible to do here
Star-Dust Expert Licensed User Longtime User Oct 25, 2017 #7 Try AutoCompleteEditText object https://www.b4x.com/android/help/views.html#autocompleteedittext Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2017 #8 Or SearchView: https://www.b4x.com/android/forum/threads/19379/#content Upvote 0
Ricky D Well-Known Member Licensed User Longtime User Oct 25, 2017 #9 Erel said: Or SearchView: https://www.b4x.com/android/forum/threads/19379/#content Click to expand... I do but they don't do what I want. It's not possible in Android is it possible in ios? If so I'll ditch my Android stuff Upvote 0
Erel said: Or SearchView: https://www.b4x.com/android/forum/threads/19379/#content Click to expand... I do but they don't do what I want. It's not possible in Android is it possible in ios? If so I'll ditch my Android stuff
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2017 #10 What is not possible in Android? Upvote 0
Ricky D Well-Known Member Licensed User Longtime User Oct 25, 2017 #11 Erel said: What is not possible in Android? Click to expand... The selection of part of the text. It only has Selectall Upvote 0
Erel said: What is not possible in Android? Click to expand... The selection of part of the text. It only has Selectall
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2017 #12 So why is the question in the first post about key presses? If you are using B4A v7.3 then you can call EditText.SetSelection to select part of the text. For further discussion please start a new thread and make sure to better explain the question. Upvote 0
So why is the question in the first post about key presses? If you are using B4A v7.3 then you can call EditText.SetSelection to select part of the text. For further discussion please start a new thread and make sure to better explain the question.
Ricky D Well-Known Member Licensed User Longtime User Oct 25, 2017 #13 Erel said: So why is the question in the first post about key presses? If you are using B4A v7.3 then you can call EditText.SetSelection to select part of the text. For further discussion please start a new thread and make sure to better explain the question. Click to expand... Because I want to make an autocomplete that behaves like what I created for b4ppc Upvote 0
Erel said: So why is the question in the first post about key presses? If you are using B4A v7.3 then you can call EditText.SetSelection to select part of the text. For further discussion please start a new thread and make sure to better explain the question. Click to expand... Because I want to make an autocomplete that behaves like what I created for b4ppc
Star-Dust Expert Licensed User Longtime User Oct 25, 2017 #14 Ricky D said: Because I want to make an autocomplete that behaves like what I created for b4ppc Click to expand... Send an image of what you created with b4ppc so it's clearer about what you mean. Change title to Thread because your request is different from EditText but from AutoCompleteEditText. Explain what you want to select: Are you in the selection the portion of the suggested text? All the text? Upvote 0
Ricky D said: Because I want to make an autocomplete that behaves like what I created for b4ppc Click to expand... Send an image of what you created with b4ppc so it's clearer about what you mean. Change title to Thread because your request is different from EditText but from AutoCompleteEditText. Explain what you want to select: Are you in the selection the portion of the suggested text? All the text?
Ricky D Well-Known Member Licensed User Longtime User Oct 25, 2017 #15 Im Star-Dust said: Send an image of what you created with b4ppc so it's clearer about what you mean. Change title to Thread because your request is different from EditText but from AutoCompleteEditText. Explain what you want to select: Are you in the selection the portion of the suggested text? All the text? Click to expand... I'm at work Upvote 0
Im Star-Dust said: Send an image of what you created with b4ppc so it's clearer about what you mean. Change title to Thread because your request is different from EditText but from AutoCompleteEditText. Explain what you want to select: Are you in the selection the portion of the suggested text? All the text? Click to expand... I'm at work
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2017 #16 It is not relevant. If want other members to help you then you need to post all the information. If it is currently not available then wait until it is. Upvote 0
It is not relevant. If want other members to help you then you need to post all the information. If it is currently not available then wait until it is.