[Lazarus] TCheckLisBox and SelCount
pascaldragon at googlemail.com
Tue Aug 4 11:08:36 CEST 2020
frans via lazarus <lazarus at lists.lazarus-ide.org> schrieb am Di., 4. Aug.
> The inherited SelCount function of a TCheckListBox counts the selected
> items, not the checked items which are the whole purpose of this
> component. And there is no other function available. Is this overlooked
> or judged as not necessary?
Items can still be selected independent of their checked state (e.g. If the
user want to (de)check multiple items at once).
There currently is no CheckedCount or something like that, you need to
manually count the elements for which Checked returns True. (Or create a
helper to simplify this)
Though you could also file a feature request for such a property to be
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lazarus