[Lazarus] TCheckLisBox and SelCount

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] TCheckLisBox and SelCount

Free Pascal - Lazarus mailing list
Hi,

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?

--
mvg
Frans van Leeuwen
M 06-51695390


--
Deze e-mail is gecontroleerd op virussen door AVG.
http://www.avg.com

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] TCheckLisBox and SelCount

Free Pascal - Lazarus mailing list
http://docwiki.embarcadero.com/Libraries/Sydney/en/Vcl.CheckLst.TCheckListBox_Properties

It is Delphi compatable?

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] TCheckLisBox and SelCount

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
frans via lazarus <[hidden email]> schrieb am Di., 4. Aug. 2020, 09:36:
Hi,

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 added. 

Regards, 

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus