Recent

Author Topic: Grid of images from dataset [SOLVED]  (Read 2229 times)

runs

  • New Member
  • *
  • Posts: 26
Grid of images from dataset [SOLVED]
« 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?
« Last Edit: April 04, 2023, 11:31:25 am by runs »
Projects: LibreStaff

paweld

  • Hero Member
  • *****
  • Posts: 966
Re: Grid of images from dataset
« Reply #1 on: March 24, 2023, 10:45:36 am »
Sample in attachment.
« Last Edit: March 24, 2023, 11:23:45 am by paweld »
Best regards / Pozdrawiam
paweld

wp

  • Hero Member
  • *****
  • Posts: 11830
Re: Grid of images from dataset
« Reply #2 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.
« Last Edit: March 24, 2023, 01:34:42 pm by wp »

runs

  • New Member
  • *
  • Posts: 26
Re: Grid of images from dataset
« Reply #3 on: March 26, 2023, 01:07:54 am »
Projects: LibreStaff

runs

  • New Member
  • *
  • Posts: 26
Re: Grid of images from dataset
« Reply #4 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
Projects: LibreStaff

jcmontherock

  • Full Member
  • ***
  • Posts: 234
Re: Grid of images from dataset [SOLVED]
« Reply #5 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.
Windows 11 UTF8-64 - Lazarus 3.2-64 - FPC 3.2.2

jcmontherock

  • Full Member
  • ***
  • Posts: 234
Re: Grid of images from dataset [SOLVED]
« Reply #6 on: July 08, 2023, 10:59:32 am »
Sorry Paweld, I found it...
Windows 11 UTF8-64 - Lazarus 3.2-64 - FPC 3.2.2

 

TinyPortal © 2005-2018