문제

I'm using a list of checkboxes on a form where they are actually TCheckListBox components.

I can use this method to show the clicked item:

ShowMessage(MyCheckBoxes.GetSelectedText);

In addition to the visible text in each row, I'd like to store an ID number.

Is this possible to do this and if so please share a doc or example.

Thanks!

I'm using Lazarus + Ubuntu

도움이 되었습니까?

해결책

The array with items is called "items". The texts are in items[i] and you can store additional objects in items.objects[i]

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top