Domanda

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

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top