|
|
|
|
|
- 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. Images can be of different sizes and proportions: the Image Gallery field ensures a harmonious display.. Navigation between images is automatically managed. The control displays images from a directory or database, or images defined programmatically. Overview An image gallery in rows proposes the same height for each image of the same row . Lines don't necessarily have to be the same height: this is determined automatically according to the images in the line. 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 Overview An image gallery in columns proposes the same width for each row of the same column. In each column, the height of the row can be variable: this height is determined automatically according to the images displayed. Creating a gallery in columns Characteristics of gallery in columns Setting the number of columns ("Detail" tab in the field description): It is possible to set the gallery column display mode: - Fixed number of columns and variable width: If the width of the RepeatString zone allows the display of an additional column, the number of columns remains unchanged.. Only the width of columns is modified.
- Variable number of columns and fixed width: If the width of the RepeatString zone allows the display of an additional column, then it is added.. Before adding the column, the rows are centered horizontally.
- Variable number of columns and variable width: If the width of the RepeatString zone allows for the display of an additional column, then it is added.. Before adding the column, the rows are stretched horizontally.
 Setting the number of columns ("Detail" tab in the field description): It is possible to set the gallery column display mode: - Variable column width: If the width of the RepeatString area allows the display of an additional column, the number of columns remains unchanged.. Only the width of columns is modified.
- Variable width and number of columns: If the width of the RepeatString zone allows for the display of an additional column, then it is added.. Before adding the column, the rows are stretched horizontally.
- Variable number of columns (left): If the width of the RepeatString area allows the display of an additional column, it is added.. Images are aligned to the left. Before adding the column, an empty area may appear on the right.
- Variable number of columns (centered): If the width of the RepeatString area allows the display of an additional column, then it 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): Number of columns and column width remain unchanged. Columns are aligned to the left.
- Fixed width and number of columns (centered): Number of columns and column width remain unchanged. The columns are centered.
- Reference field: A column gallery is made up of 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. - Scrolling popup: A scrolling popup can be opened automatically when the reference field is clicked:
In the Looper control description window, in the "Details" tab, check "During click, open a popup for automatic scroll".  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.
Please note: the display mode and docking options of the Image field 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 runtime.
- 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 photo gallery site and is composed of 2 main parts: - the "visitor" part, - the administration part. These are some of the available features: - organize photos via albums - include links to social networks - enable users to comment on posts - user login via WEBDEV'S GPU - contact form - ability to upload, describe, and classify photos via albums on the administration side
|
|
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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|