Search code examples
delphifiremonkeydelphi-10-seattle

How do i create checklist in firemonkey android platform?


There is no checklist control into Firemonkey Android Platform , i wanted to know if there any alternative to it ?


Solution

  • FMX TListBox supports check boxes (if you're asking for a VCL TCheckListBox alternative). Just set the ShowCheckboxes property to True to show them. To access the check box state of an item in code use the IsChecked property, for example:

    var
      i: Integer;
    begin
      for i := 0 to ListBox1.Count-1 do
        ListBox1.ListItems[i].IsChecked := True;
    end;