Set "Listbox.itemindex := value" does not work, when Listbox has style multiselect (linux and macos)

Issue #200 resolved
Harry Stahl created an issue

This works on windows, on linux and mac itemindex is always zero:

procedure TForm9.Button1Click(Sender: TObject);
begin
ListBox1.Selected[3] := True;
ListBox1.ItemIndex := 3;

label1.Caption := ListBox1.ItemIndex.ToString;
end;

See attached project

Comments (3)

  1. Harry Stahl

    Is this a restriction of the system? If so, one could close this issue and take it to a list “restrictions of the used OS” or so. If not, it would be fine to fix this.

  2. Log in to comment