M Mark Stuart Well-Known Member Licensed User Longtime User Feb 25, 2021 #1 I have a TextField on a form. Running the project and right-clicking the TextField (with text in it), by default, produces the following context menu with some text selected. I'd like to append/add to the existing menu, so that it don't lose the existing menu items and their functionality. How do I do that? If the existing context menu items are lost by adding my own, how do I get back the existing functionality? And what code would work in this case?
I have a TextField on a form. Running the project and right-clicking the TextField (with text in it), by default, produces the following context menu with some text selected. I'd like to append/add to the existing menu, so that it don't lose the existing menu items and their functionality. How do I do that? If the existing context menu items are lost by adding my own, how do I get back the existing functionality? And what code would work in this case?
Erel B4X founder Staff member Licensed User Longtime User Feb 26, 2021 #2 It is not possible to add items to the default menu. It might be possible to return back to the default context menu with: Code: Copy Dim jo As JavaObject = TextField1 jo.RunMethod("setContextMenu", Array(Null)) I haven't tried it. Upvote 0
It is not possible to add items to the default menu. It might be possible to return back to the default context menu with: Code: Copy Dim jo As JavaObject = TextField1 jo.RunMethod("setContextMenu", Array(Null)) I haven't tried it.