Recent

Author Topic: Grid of images from dataset [SOLVED]  (Read 517 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: 677
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: 10868
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

 

TinyPortal © 2005-2018