Answer the question
In order to leave comments, you need to log in
How to get all selected items in Delphi listbox?
Hello friends, I have a question, I don’t understand how to find out all the selected lines in the Delphi fmx listbox.
If I set the ListBox MultiSelected to true and try to select a row, it only shows the last selected one.
But I still don’t understand how to use the CheckBox in the ListBox with the ShowCheckBox option enabled, maybe someone who solved the problem with the multi-selection will tell
Answer the question
In order to leave comments, you need to log in
procedure TForm1.ListBox1Click(Sender: TObject);
begin
If ListBox1.Selected.Selectable = true Then
showMessage(ListBox1.Selected.Text);
end;
end.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question