Is it possible to store additional info (just one item) in a TCheckListBox?

48 views Asked by At

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

1

There are 1 answers

2
Marco van de Voort On BEST ANSWER

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