ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Web-specific functions / Image functions
  • Managing the transition effects
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Displays the next image for the scroll.
Example
// Program images in the sliding banner.
// Ability to specify the image directory
// The first time, the first image is selected at random.
// =================
// Declaration of global variables
gnNumberSlideImages is int
gnStartingImage is int
gsSlideImageName is string
 
// Page initialization
<BLOCK Sliding Banner>
gsSlideImageName = fListFile(fWebDir() + fSep + "Home banner" +
fSep + "*.jpg", frNotRecursive)
FOR EACH STRING sAFile OF gsSlideImageName SEPARATED BY CR
gnNumberSlideImages++
END
InitRandom()
gnStartingImage = Random(1, gnNumberSlideImages)
 
NumSlideStartingImage is int = gnStartingImage
 
FOR I = 1 TO NumSlideStartingImage
ImageNext(IMG_Overview)
END
ImageStartScrolling(IMG_Overview)
<END>
Syntax
ImageNext(<Image control>)
<Image control>: Control name
Name of the control to be used:
  • Image control,
  • Clickable Image control,
  • Thumbnail control.
Remarks

Managing the transition effects

If transition effects have been specified during the control description:
  • WEBDEV - Browser codePHP These transition effects are taken into account when ImageNext is used .
  • WEBDEV - Server code These transition effects are ignored when ImageNext is used. Indeed, the page is entirely refreshed. To take these effects into account, you must use a code in Ajax mode.
Component: wd290page.dll
Minimum version required
  • Version 16
Comments
Click [Add] to post a comment

Last update: 06/12/2023

Send a report | Local help