Platform: Laz 1.8.4 FPC 3.0.4, OS Windows Server 2016
I have 203,000 .jpg images of people in a folder.
I have 33,800 records in a Firebird DB each of which represents a human client.
This results in about 6 images per client that I need to display as thumbnails to my end user, so they can select which images they want to see in more detail in a larger window.
My search for a component that does the following:
a) Allows loading and display of only the 6 images associated with a particular client, and not just load every image from a given directory
b) Allow end user to select one, or more, images via click or Ctrl-Click or Shift-Click
Has lead me to a few component sets, none of which does the above (that I can see). The component I'm struggling with at the moment is TJvThumbView. Pointing to a directory auto-loads the .jpg image contained therein. But that's as far as I could get.
Here is my code:
procedure TfrmMain.Button1Click(Sender: TObject);
begin
JvThumbView1.Directory := '';
// Section 1, does nothing
JvThumbView1.AddFromFile('D:\app_vlt\pdf\1\0000A6FA-A1AB-46C7-8083-A1F8C38B9EFA.jpg');
JvThumbView1.AddFromFile('D:\app_vlt\pdf\1\0000C794-F7DC-4EC9-BC47-C22741505B71.jpg');
JvThumbView1.AddFromFile('D:\app_vlt\pdf\1\000021A1-D6B1-4EE0-8A7A-BED429A6C8E8.jpg');
Exit; // <-- Comment out sections and move this exit, so that only the one or two sections you want are "live" at a time
// Section 2, adds thumbnails "panels" but no image is shown in any of them
JvThumbView1.AddThumb('My First Thumb', True);
JvThumbView1.AddThumb('My Second Thumb', True);
JvThumbView1.AddThumb('My Third Thumb', True);
// Section 3, (Combine with Section 2 above) thumbmain panels created in Section 2 above are shown, but no images
JvThumbView1.ThumbList[0].FileName := 'D:\app_vlt\pdf\1\0000A6FA-A1AB-46C7-8083-A1F8C38B9EFA.jpg';
JvThumbView1.ThumbList[1].FileName := 'D:\app_vlt\pdf\1\0000C794-F7DC-4EC9-BC47-C22741505B71.jpg';
JvThumbView1.ThumbList[2].FileName := 'D:\app_vlt\pdf\1\000021A1-D6B1-4EE0-8A7A-BED429A6C8E8.jpg';
end;
I cannot find documentation nor relevant examples to accomplish what I want. All the examples just load all images from a directory. Alternatively, is there any other component set you recommend that is easier to use and matches my requirements?
Thanks in advance for any help you can provide.