CheckListEdit and ItemIndex

Hi

There is an easy way to know the item selected/checked into the stringlist coming from a tCheckListEdit componant ?

Or we have to find it by the text itself coming from the ItemToText event ?

Regards
olivier

Yes, there is an easy way to know the item selected/checked into the stringlist coming from a TCheckListEdit component. The CheckListEdit.Checked[index: integer] property can be used to check the checked status of each checkbox item in the list. The index parameter is used to specify the index of the item in the list. If the checkbox is checked, the property will return true.

Hi

Thanks for your answer.

I wanted to know which line had been selected.
I thought to add a parameter to the event "OnClickCheck(Sender : TObject)" with "OnClickCheck(Sender : TObject; Index : Integer)" in order to know th item clicked.

regards
olivier

Sadly this breaks the event signature and thus will break code from users.
The best we can consider is to implement an alternative event handler.

Great

Thanks in advance

olivier