Wednesday, 15 May 2013

delphi - Attaching an object to an already existing ListItem? -



delphi - Attaching an object to an already existing ListItem? -

in listview, how can attach object @ time existing listitem? (i know can attach object listitem additem, need attach object after listitem has been created).

you can access through tlistitem.data property. example:

var listitem: tlistitem; begin listview1.additem('item 1', nil); ... listitem := listview1.items[0]; listitem.data := edit1; tedit(listitem.data).text := 'updated text...'; end;

delphi listview object delphi-xe2 listitem

No comments:

Post a Comment