B4XTableSelections extends B4XTable and adds new selection modes: SINGLE_CELL_TEMP - this is the built-in selection mode. Unlike the other selection modes it disappears automatically. SINGLE_CELL_PERMANENT - selection of a single cell. SINGLE_LINE_PERMANENT - selection of a single line...
www.b4x.com
You would choose in your case: SINGLE_LINE_PERMANENT - selection of a single line.
B4X:
XSelections.Mode = XSelections.MODE_SINGLE_LINE_PERMANENT
XSelections.SelectionColor=xui.Color_Green 'you can change the color of the row selected with this
B4XTableSelections extends B4XTable and adds new selection modes: SINGLE_CELL_TEMP - this is the built-in selection mode. Unlike the other selection modes it disappears automatically. SINGLE_CELL_PERMANENT - selection of a single cell. SINGLE_LINE_PERMANENT - selection of a single line...
www.b4x.com
You would choose in your case: SINGLE_LINE_PERMANENT - selection of a single line.
B4X:
XSelections.Mode = XSelections.MODE_SINGLE_LINE_PERMANENT
XSelections.SelectionColor=xui.Color_Green 'you can change the color of the row selected with this
I have followed your suggestions
Look at my surroundings:
I think I have the correct libraries, however it doesn't recognize "B4XTableSelections"
What I can be doing wrong?
Download this example (and it works!):
B4XTableSelections extends B4XTable and adds new selection modes: SINGLE_CELL_TEMP - this is the built-in selection mode. Unlike the other selection modes it disappears automatically. SINGLE_CELL_PERMANENT - selection of a single cell. SINGLE_LINE_PERMANENT - selection of a single line...
You need to add the class module manually to your project from the B4J example in the link I gave you. The class module is called: B4XTableSelections.bas. This class module works with B4A also. There is no library to check
UPS!!!!
My ignorance believed that it was included in "B4XCollections"
Adding "B4XTablesSelections.bas" came out working !!!!
It is also necessary to clarify that the following must be done (in addition to what you indicate above):
B4XTable1_DataUpdated:
Sub B4XTable1_DataUpdated
...
XSelections.Refresh
End Sub
Refresh the display when we change pages
B4XTable1_CellClicked:
Private Sub B4XTable1_CellClicked (ColumnId As String, RowId As Long)
XSelections.CellClicked(ColumnId, RowId) : Sleep(150)
...
End Sub