ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Web-specific functions / Image functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Starts cycling through images.
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
		IMG_Overview.Next()
	END
	IMG_Overview.StartScrolling()
<END>
Syntax
<Image control>.StartSliding([<Type of scroll>])
<Image control>: Control name
Name of control to use:
  • Image control.
  • Clickable Image control.
  • Thumbnail control.
<Type of scroll>: Optional Integer constant
Type of scroll to perform:
scrollCurrentFills the list of images and starts the scroll from the current position if possible.
WEBDEV - Browser code This constant is not available.
scrollInitializeFills the list of images and starts the scroll from the beginning.
WEBDEV - Browser code This constant is not available.
scrollStart
(Default value)
Starts (or restarts) the scroll from the current position.
Component: wd300page.dll
Minimum version required
  • Version 23
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help