vhajiabadi
Member
I have turned on the ability to select text on a label like this:
And using this method, I have created my custom-context-menu-for-text-selection :
Now I need to be able to get the selected text on the label when executing ContextMenuClick_Event.
This is easy for Edittext but how will it be done for Label?
B4X:
Dim jo As JavaObject = Label
jo.RunMethod("setTextIsSelectable", Array As Object(True))
And using this method, I have created my custom-context-menu-for-text-selection :
Custom Context Menu for Text Selection
This example uses inline Java with JavaObject to allow creating custom context menus when the user selects text. To use it in your project you need to add the inline Java code and implement this method: Sub ContextMenu_Create(ActionMode As JavaObject, FocusedView As View) Dim menu As...
www.b4x.com
Now I need to be able to get the selected text on the label when executing ContextMenuClick_Event.
This is easy for Edittext but how will it be done for Label?