[英]Is it possible to store additional info (just one item) in a TCheckListBox?
I'm using a list of checkboxes on a form where they are actually TCheckListBox components. 我在窗体上实际上是TCheckListBox组件的窗体上使用复选框列表。
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. 除了每行中可见的文本外,我还要存储一个ID号。
Is this possible to do this and if so please share a doc or example. 是否可以这样做,如果可以,请分享文档或示例。
Thanks! 谢谢!
I'm using Lazarus + Ubuntu 我正在使用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] 文本在items [i]中,您可以在items.objects [i]中存储其他对象。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.