B4J Question [B4XTable] Copy Cell Content

aeric

Expert
Licensed User
Longtime User
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?
 

aeric

Expert
Licensed User
Longtime User
B4X:
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.
 
Upvote 0
Top