Typically when making multiple selections, the Ctrl key can be used. However with the WebListBox that does not work. On sequential selections can be made by holding the Shift key.
I didn’t find an easy or obvious way to incorporate a true CheckBox, so I’m spoofing it and using a WebListBoxStyleRenderer to put an icon in the cell. If the user clicks the cell I just capture that event and re-render the cell with a checked (or unchecked) icon. I use the CellTagAt to store the state of the pseudo checkbox for evaluation later in the process.
If can_be_selected Then
cellRenderer = New WebListBoxStyleRenderer(Self.listbox_records_for_review.style_normal_cell_emoji, Self.listbox_records_for_review.checked_icon)
Self.listbox_records_for_review.CellTextAt(last_row,8) = cellRenderer
Self.listbox_records_for_review.CellTagAt(last_row,8) = "CHECKED_SELECTED"
Else
cellRenderer = New WebListBoxStyleRenderer(Self.listbox_records_for_review.style_normal_cell_emoji, Self.listbox_records_for_review.prohibited_icon)
Self.listbox_records_for_review.CellTextAt(last_row,8) = cellRenderer
Self.listbox_records_for_review.CellTagAt(last_row,8) = "CHECKED_DISABLED"
End If
If you create a feature request on Issues, I bet @Ricardo_Cruz will take a look to see if possible to bring back the use of Control key to do multiple-select.
Don’t forget you can just enter a tick (I keep ‘’ aside as a Constant in case I ever want to change it) for use in a myWebListBox.CellTextAt(…, …) Method.