- Overview
- Gallery in rows
- Overview
- Creating a gallery in rows
- Characteristics of gallery in rows
- Gallery in columns
- Overview
- Creating a gallery in columns
- Characteristics of gallery in columns
'Image gallery' Looper control
The "Image gallery" Looper control is used to manage the display of a set of images without programming. The images can have differents sizes and proportions: the Image Gallery control performs a harmonious display. The navigation between images is automatically managed. The control displays the images found in a directory, coming from a database or defined by programming. Versions 24 and later New in version 24 Overview An image gallery in rows proposes the same height for each image of the same row . The rows do not necessarily have the same height: this height is automatically defined according to the images found on the row. The gallery in rows automatically adapts the width of each row to respect the image proportions. A Gallery in Rows control is recommended to display images only (without text below for example). Creating a gallery in rows Versions 24 and later New in version 24Characteristics of gallery in rows - Reference control: A gallery in rows includes several rows. Each row contains at least one reference control. This reference control corresponds to an Image control, a clickable Image control or a Thumbnail control. This reference control is used to define a reference size (a minimum size).
This reference control is defined in the "Details" tab of the Looper control description window. - Scroll popup: It is possible to automatically open a scroll popup when clicking on the reference control:
In the Looper control description window, in the "Details" tab, check "During click, open a popup for automatic scroll". Versions 24 and later In the Looper control description window, in the "Details" tab, check "Display a popup on click". New in version 24 In the Looper control description window, in the "Details" tab, check "Display a popup on click".  In the Looper control description window, in the "Details" tab, check "Display a popup on click".
- At runtime, the height of each row automatically adjusts to fit the content displayed.
Caution: the display mode of Image control is very important. - If the source image is smaller than the reference Image control, the display mode of image applies at run time.
- If the height of source image is greater than its width in relation to the reference Image control, the row height will be increased.
Overview An image gallery in columns proposes the same width for each row of the same column. In each column, the row height can change: this height is automatically defined according to the images displayed. Creating a gallery in columns Versions 24 and later New in version 24Characteristics of gallery in columns Defining the number of columns ( "Details" tab of the control description): You have the ability to customize the display mode of columns in the gallery: - Fixed number of columns and variable width: If the width of the looper allows the display of an additional column, the number of columns does not change. Only the width of columns is modified.
- Variable number of columns and fixed width: If the width of looper control is sufficient to display an additional column, this column is added. Before adding the column, the rows are centered horizontally.
- Variable number of columns and variable width: If the width of looper control is sufficient to display an additional column, this column is added. Before adding the column, the rows are stretched horizontally.
Versions 24 and later Defining the number of columns ( "Details" tab of the control description): You have the ability to customize the display mode of columns in the gallery: - Variable column width: If the width of the looper allows the display of an additional column, the number of columns does not change. Only the width of columns is modified.
- Variable width and number of columns: If the width of looper control is sufficient to display an additional column, this column is added. Before adding the column, the rows are stretched horizontally.
- Variable number of columns (left): If the width of looper control is sufficient to display an additional column, this column is added. Images are aligned to the left. Before adding the column, an empty area may appear on the right.
- Variable number of columns (columns): If the width of looper control is sufficient to display an additional column, this column is added. Before adding the column, the columns are centered and an empty area may appear on either side of the centered columns.
- Fixed width and number of columns (left): The number of columns and the width of the columns are not changed. Columns are aligned to the left.
- Fixed width and number of columns (centered): The number of columns and the width of the columns are not changed. The columns are centered.
New in version 24 Defining the number of columns ( "Details" tab of the control description): You have the ability to customize the display mode of columns in the gallery: - Variable column width: If the width of the looper allows the display of an additional column, the number of columns does not change. Only the width of columns is modified.
- Variable width and number of columns: If the width of looper control is sufficient to display an additional column, this column is added. Before adding the column, the rows are stretched horizontally.
- Variable number of columns (left): If the width of looper control is sufficient to display an additional column, this column is added. Images are aligned to the left. Before adding the column, an empty area may appear on the right.
- Variable number of columns (columns): If the width of looper control is sufficient to display an additional column, this column is added. Before adding the column, the columns are centered and an empty area may appear on either side of the centered columns.
- Fixed width and number of columns (left): The number of columns and the width of the columns are not changed. Columns are aligned to the left.
- Fixed width and number of columns (centered): The number of columns and the width of the columns are not changed. The columns are centered.
 Defining the number of columns ( "Details" tab of the control description): You have the ability to customize the display mode of columns in the gallery: - Variable column width: If the width of the looper allows the display of an additional column, the number of columns does not change. Only the width of columns is modified.
- Variable width and number of columns: If the width of looper control is sufficient to display an additional column, this column is added. Before adding the column, the rows are stretched horizontally.
- Variable number of columns (left): If the width of looper control is sufficient to display an additional column, this column is added. Images are aligned to the left. Before adding the column, an empty area may appear on the right.
- Variable number of columns (columns): If the width of looper control is sufficient to display an additional column, this column is added. Before adding the column, the columns are centered and an empty area may appear on either side of the centered columns.
- Fixed width and number of columns (left): The number of columns and the width of the columns are not changed. Columns are aligned to the left.
- Fixed width and number of columns (centered): The number of columns and the width of the columns are not changed. The columns are centered.
- Reference control: A gallery in columns includes several rows. Each row contains at least one Image control. The "Gallery in columns" Looper control is associated with this Image control (or Clickable Image control or Thumbnail control). This control is used to define a reference size.
This reference control is defined in the "Details" tab of the Looper control description window. - Scroll popup: It is possible to automatically open a scroll popup when clicking on the reference control:
In the Looper control description window, in the "Details" tab, check "During click, open a popup for automatic scroll". Versions 24 and later In the Looper control description window, in the "Details" tab, check "Display a popup on click". New in version 24 In the Looper control description window, in the "Details" tab, check "Display a popup on click".  In the Looper control description window, in the "Details" tab, check "Display a popup on click".
- At runtime, the height of each row automatically adjusts to fit the content displayed.
Caution: the display mode and the anchoring options of Image control are very important. - If the source image is smaller than the reference Image control, the dimensions of reference control are applied to the image at run time.
- If the width of source image is greater than its height in relation to the reference Image control, the column width will be increased.
Related Examples:
|
Complete examples (WEBDEV): Photo_Gallery
[ + ] This example is a site of photo gallery and it includes 2 main sections: - the "visitor" section, developed in AWP mode therefore referenceable. - the management section, developed in standard WEBDEV mode therefore secured. Among the available features, you will find: - an organization of your photos by album - different modes for presentation the photos: slide show mode, scroll mode, detailed mode - a link to the social networks - the ability for the visitors to comment your publications - a contact form - for the site management, you have the ability to upload your photos, to describe them, to turn them around, to encrust a watermark..
|
|
Training (WINDEV): WD Gallery Control
[ + ] This example demonstrates the use of the "Image Gallery" control.
|
|
Cross-platform examples (WINDEV Mobile): WM Gallery Control
[ + ] This example shows how to use the "Image Gallery" control.
|
This page is also available for…
|
|
|
| |
| | https://youtu.be/ziHu5pnxrHM https://windevdesenvolvimento.blogspot.com/2019/08/dicas-2254-windev-webdev-mobile-24.html // sFile is string // Opens the file picker sFile = fSelect("", "", "SELECIONA IMAGEN", "All the files (*.*)" + TAB + "*.*", "*.*") LOOP_GalleryRow.AddLine(sFile)
|
|
|
|
| |
| |
| |
| |
| |
| |
| | |
|