ImageEn, unit iemview

TImageEnMView.CheckedCount

TImageEnMView.CheckedCount


Declaration


function CheckedCount : Integer;


Description


Returns the number of items that have been checked (if Checkboxes have been enabled).


Demo


  Demos\Multi\Checkboxes\Checkboxes.dpr



Example


// Note: Use OnClick, not OnCheckboxClick if need to read CheckedCount
procedure TfMain.ImageEnMView1Click(Sender: TObject);
begin
  // Display the current count of checked items in the status bar
  Statusbar1.SimpleText := 'Checked: ' + IntToStr(ImageEnMView1.CheckedCount);
end;


See Also


- Checked