[lazarus] CheckListBox can't store objects with items in win32 interface

Vincent Snijders vslist at zonnet.nl
Sun Dec 7 04:37:12 EST 2003


Hi,

While trying to get the debug options dialog working, I noticed that the
win32 interface doesn't store the objects associated with a list item
in a CheckedListBox (or ListBox).

While implementing this the obvious way with LB_SETITEMDATA. This works
for TListBox, but not for TCheckListBox, because TCheckListBox stores it
Checked property in the item data.

Any suggestions to solve this? Storing a heap-allocated record with
object and selected fields in the item data is one possibility, but I
fear the bookkeeping involved. Any suggestions are wellcome.

Regards,
Vincent Snijders.






More information about the Lazarus mailing list