DALB Active Member Licensed User Jul 17, 2021 #1 Hello, I wish to select a word in an editText. it becomes highlited. How can I do to keep the Highligh but making the flying menu disappearing ? This little menu appear when I select a word. It contains in one line the following expressions :"Select All - Cut - Copy - Paste" If you have any idea, thanks for this.
Hello, I wish to select a word in an editText. it becomes highlited. How can I do to keep the Highligh but making the flying menu disappearing ? This little menu appear when I select a word. It contains in one line the following expressions :"Select All - Cut - Copy - Paste" If you have any idea, thanks for this.
Erel B4X founder Staff member Licensed User Longtime User Jul 18, 2021 #2 You can add customize this menu: https://www.b4x.com/android/forum/threads/custom-context-menu-for-text-selection.81596/#content If I remember correctly it will always appear with the "select all" option. Try it. A different solution can be to use BBCodeView and mark the words yourself. Upvote 0
You can add customize this menu: https://www.b4x.com/android/forum/threads/custom-context-menu-for-text-selection.81596/#content If I remember correctly it will always appear with the "select all" option. Try it. A different solution can be to use BBCodeView and mark the words yourself.
M mberthe Member Licensed User Longtime User Jul 18, 2021 #3 A solution so that a long click does not trigger the display of the contex menu B4X: Copy ref5.Target=EditText1 ref5.SetOnLongClickListener("context_longclick") Sub context_longclick(viewtag As JavaObject) As Boolean Return True End Sub Upvote 0
A solution so that a long click does not trigger the display of the contex menu B4X: Copy ref5.Target=EditText1 ref5.SetOnLongClickListener("context_longclick") Sub context_longclick(viewtag As JavaObject) As Boolean Return True End Sub
DALB Active Member Licensed User Jul 20, 2021 #4 Okay you two, thank you for replying ! Last edited: Jul 20, 2021 Upvote 0