How to show in the object of TListBox the pictures from TStrings that has all full path and file names like 'c:\folder\picture1.jpeg'?

Comments

  1. Also something like this should work in FMX:
    ListBoxItem := TListBoxItem.Create(ListBox1);
    Image := TImage.Create(Self);
    Image.Bitmap.LoadFromFile('yourimage.png');
    Image.Parent := ListBoxItem;
    ListBox1.AddObject(ListBoxItem);

    ReplyDelete
  2. PicItem := TListBoxItem.Create(nil);
    PicItem.Parent := ListBox1;
    PicItem.ItemData.Bitmap.LoadFromFile('c:\folder\picture1.jpeg');
    PicItem.StyleLookup := 'CustomStyle';

    ReplyDelete

Post a Comment