TImageEnMView.CheckedCount
Declaration
function CheckedCount() : Integer;
Description
Returns the number of items that have been checked (if
Checkboxes have been enabled).
Note: Images that are hidden due to a
filter will not be counted.
| Demos\Multi\Checkboxes\Checkboxes.dpr |
// 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