aeric Expert Licensed User Longtime User Sep 4, 2022 #1 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?
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?
Erel B4X founder Staff member Licensed User Longtime User Sep 4, 2022 #2 B4X: Expand Collapse Copy 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 Upvote 0
B4X: Expand Collapse Copy 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
Erel B4X founder Staff member Licensed User Longtime User Sep 4, 2022 #3 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. Upvote 0
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.
aeric Expert Licensed User Longtime User Sep 4, 2022 #4 Erel said: B4X: Expand Collapse Copy 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 Click to expand... 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
Erel said: B4X: Expand Collapse Copy 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 Click to expand... 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.
Erel B4X founder Staff member Licensed User Longtime User Sep 4, 2022 #5 Labels are not selectable. It shouldn't be too complicated to add uneditable TextFields instead. This will let the user select text. Upvote 0
Labels are not selectable. It shouldn't be too complicated to add uneditable TextFields instead. This will let the user select text.