Hi,
I want to get the selected text of a textarea after the selection is done.
There is no mousereleased event for textarea and I used javaobject to addevent. But I did not get it work.
Code is like this:
What is the right way to do this?
Thanks.
I want to get the selected text of a textarea after the selection is done.
There is no mousereleased event for textarea and I used javaobject to addevent. But I did not get it work.
Code is like this:
B4X:
Dim CJO As JavaObject = TextArea1
Dim O As Object = CJO.CreateEventFromUI("javafx.event.EventHandler","TextArea1_MouseReleased",Null)
CJO.RunMethod("setOnMouseReleased",Array(O))
B4X:
Sub TextArea1_MouseReleased_Event (MethodName As String, Args() As Object) As Object
Log("released")
End Sub
What is the right way to do this?
Thanks.