S Scantech Well-Known Member Licensed User Longtime User Oct 8, 2020 #1 Is there any way to detect what words are on top of the multi line edittext?
angel_ Well-Known Member Licensed User Longtime User Oct 8, 2020 #2 If you have CRLF to separate them B4X: Copy Dim txt() As String = Regex.Split(CRLF, edittext.Text) Dim FirstLine As String = txt(0) Upvote 0
If you have CRLF to separate them B4X: Copy Dim txt() As String = Regex.Split(CRLF, edittext.Text) Dim FirstLine As String = txt(0)
Erel B4X founder Staff member Licensed User Longtime User Oct 9, 2020 #3 Not enough information here. This might be relevant: https://www.b4x.com/android/forum/threads/how-to-get-text-of-a-line-in-label.122457/post-765194 Upvote 0
Not enough information here. This might be relevant: https://www.b4x.com/android/forum/threads/how-to-get-text-of-a-line-in-label.122457/post-765194
S Scantech Well-Known Member Licensed User Longtime User Oct 9, 2020 #4 It has a vertical scroll panel with edittext in it. When i scroll up, the text that are shown at the top of the edittext is what i want to detect. I don't feel like switching from edittext to something else. If it is possible to find the top line, then great. ScrollView + Edittext B4X: Copy svGridScrollLog.Panel.AddView(txtHBBibleVerses,0,0,1,1) Upvote 0
It has a vertical scroll panel with edittext in it. When i scroll up, the text that are shown at the top of the edittext is what i want to detect. I don't feel like switching from edittext to something else. If it is possible to find the top line, then great. ScrollView + Edittext B4X: Copy svGridScrollLog.Panel.AddView(txtHBBibleVerses,0,0,1,1)
Erel B4X founder Staff member Licensed User Longtime User Oct 11, 2020 #5 No simple way. Note that you don't need to put the EditText in a ScrollView as it is a scrollable control. Upvote 0
No simple way. Note that you don't need to put the EditText in a ScrollView as it is a scrollable control.