- Jun 6, 2020
- 11,517
- 4,383
I have turned on the ability to select text on a label like this:
B4X:
And using this method, I have created my 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...
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:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
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...
برای دیدن تصاویر باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
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?
برای دیدن لینک ها باید ثبت نام کنید