Lazarus

Programming => Packages and Libraries => LazReport => Topic started by: runs on March 24, 2023, 01:31:06 am

Title: Grid of images from dataset [SOLVED]
Post by: runs on March 24, 2023, 01:31:06 am
how could I do this, take the images from the dataset and put them in order from left to right and top to bottom?

Any ideas on how to deal with it?
Title: Re: Grid of images from dataset
Post by: paweld on March 24, 2023, 10:45:36 am
Sample in attachment.
Title: Re: Grid of images from dataset
Post by: wp on March 24, 2023, 01:32:20 pm
I am attaching a small project which iterates over the records of the "mushrooms" sample project (in examples/database/image_mushrooms, converted to dbf) and displays the images in a scrollbox with flowpanel. The TFlowPanel is a control which rearranges its controls in some grid-like manner. The scrollbox is needed to display scrollbar in the case that the images do not fit in the viewport. The images are created at runtime while iterating over the dataset. To improve visual appearance each image is inserted in a gray panel with additional label for the image name.
Title: Re: Grid of images from dataset
Post by: runs on March 26, 2023, 01:07:54 am
Sample in attachment.

Thanks!!!
Title: Re: Grid of images from dataset
Post by: runs on March 26, 2023, 01:08:15 am
I am attaching a small project which iterates over the records of the "mushrooms" sample project (in examples/database/image_mushrooms, converted to dbf) and displays the images in a scrollbox with flowpanel. The TFlowPanel is a control which rearranges its controls in some grid-like manner. The scrollbox is needed to display scrollbar in the case that the images do not fit in the viewport. The images are created at runtime while iterating over the dataset. To improve visual appearance each image is inserted in a gray panel with additional label for the image name.

Thanks
Title: Re: Grid of images from dataset [SOLVED]
Post by: jcmontherock on July 08, 2023, 10:49:59 am
Hello Paweld,

Your sample (Grid of images: published.7z) seems very interesting. I try to execute it, but I could not because file "test.lrf" does not exist. Could you add it in your sample ? Thanks in advance.
Title: Re: Grid of images from dataset [SOLVED]
Post by: jcmontherock on July 08, 2023, 10:59:32 am
Sorry Paweld, I found it...
TinyPortal © 2005-2018