Answer the question
In order to leave comments, you need to log in
How to insert image into ListView using DynamicAppearance?
procedure TProjectManager.lvProjectsDblClick(Sender: TObject);
var
enum: System.Generics.Collections.TEnumerator<TListViewItem>;
Size: TSize;
begin
if not Assigned(lvProjectItem) then
exit;
// enum := (Sender as TListView).Items.GetEnumerator;
// while enum.MoveNext do
// begin
// enum.Current.Data['status'] := ''
// end;
lvProjectItem.Data['image_status'] := // Сюда хочу засунуть изображение
CurrentProject := lvProjectItem.TagObject as TProject;
INI.WriteInteger('CurrentProject', 'id', CurrentProject.id);
INI.WriteString('CurrentProject', 'name', CurrentProject.name);
INI.WriteString('CurrentProject', 'comment', CurrentProject.comment);
INI.WriteString('CurrentProject', 'create_at', CurrentProject.create_at);
end;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question