How can I make when mouse cursor select the text or content of one/more cells in B4XTable, highlight it and allow Copy to clipboard and paste to other place?
Sub B4XTable1_CellClicked (ColumnId As String, RowId As Long)
Dim value As Object = B4XTable1.GetRow(RowId).Get(ColumnId)
Log(value)
Dim fx As JFX
fx.Clipboard.SetString(value)
End Sub
If you want to select multiple cells then use B4XTableSelections. It shouldn't be too complicated to copy the content of all selected cells, though I'm not sure that the user will expect such thing.
Sub B4XTable1_CellClicked (ColumnId As String, RowId As Long)
Dim value As Object = B4XTable1.GetRow(RowId).Get(ColumnId)
Log(value)
Dim fx As JFX
fx.Clipboard.SetString(value)
End Sub
I wish it is similar like selecting the value from HTML page or documents. Maybe partial of the content is selected, not by getting the value by cell click. However, thanks for this solution.