Blue.Sky Active Member Licensed User Longtime User Dec 29, 2015 #1 Hi again I use edittext and my app and handle clicking word So i cannot use detect because it have prevent handle clicking How do i detect touch position where user click there?
Hi again I use edittext and my app and handle clicking word So i cannot use detect because it have prevent handle clicking How do i detect touch position where user click there?
JonPM Well-Known Member Licensed User Longtime User Dec 29, 2015 #2 I'm not completely sure of the question, but Activity has a Touch event that returns X/Y. Upvote 0
Blue.Sky Active Member Licensed User Longtime User Dec 29, 2015 #3 JonPM said: I'm not completely sure of the question, but Activity has a Touch event that returns X/Y. Click to expand... I know.If i use activity touch,so i cannot handle click of edittext and cannot detect word Upvote 0
JonPM said: I'm not completely sure of the question, but Activity has a Touch event that returns X/Y. Click to expand... I know.If i use activity touch,so i cannot handle click of edittext and cannot detect word
JonPM Well-Known Member Licensed User Longtime User Dec 29, 2015 #4 Can you explain in different words what the problem is? It's difficult to clearly understand Upvote 0
Blue.Sky Active Member Licensed User Longtime User Dec 30, 2015 #5 JonPM said: Can you explain in different words what the problem is? It's difficult to clearly understand Click to expand... I add edittext in fullscreen avitivty so we have not any free space for click or touch When i click in edittext,i can detect word that click on it Upvote 0
JonPM said: Can you explain in different words what the problem is? It's difficult to clearly understand Click to expand... I add edittext in fullscreen avitivty so we have not any free space for click or touch When i click in edittext,i can detect word that click on it
Erel B4X founder Staff member Licensed User Longtime User Dec 30, 2015 #6 Handle the click event and check EditText.SelectionStart value. You might need to wait a short while before the value gets updated. Use CallSubPlus for this. Upvote 0
Handle the click event and check EditText.SelectionStart value. You might need to wait a short while before the value gets updated. Use CallSubPlus for this.
Blue.Sky Active Member Licensed User Longtime User Dec 30, 2015 #7 Erel said: Handle the click event and check EditText.SelectionStart value. You might need to wait a short while before the value gets updated. Use CallSubPlus for this. Click to expand... It is good solution.In b4a dont exist CallSubPlus,where is it?or i have to implement it? Upvote 0
Erel said: Handle the click event and check EditText.SelectionStart value. You might need to wait a short while before the value gets updated. Use CallSubPlus for this. Click to expand... It is good solution.In b4a dont exist CallSubPlus,where is it?or i have to implement it?
Erel B4X founder Staff member Licensed User Longtime User Dec 30, 2015 #8 https://www.b4x.com/search?query=CallSubPlus Upvote 0
Blue.Sky Active Member Licensed User Longtime User Dec 30, 2015 #9 Erel said: https://www.b4x.com/search?query=CallSubPlus Click to expand... I'm sorry Upvote 0
Blue.Sky Active Member Licensed User Longtime User Dec 30, 2015 #10 Erel said: Handle the click event and check EditText.SelectionStart value. You might need to wait a short while before the value gets updated. Use CallSubPlus for this. Click to expand... Erel i cannot detect x,y position in activity,because i click on edittext to selection part of text and get selection text I use StartSelection and EndSelection for get clicked position but it is not correct completely Upvote 0
Erel said: Handle the click event and check EditText.SelectionStart value. You might need to wait a short while before the value gets updated. Use CallSubPlus for this. Click to expand... Erel i cannot detect x,y position in activity,because i click on edittext to selection part of text and get selection text I use StartSelection and EndSelection for get clicked position but it is not correct completely