PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview
  • Sliding and browsing planes
  • Scrolling planes automatically in a Sliding Banner control
  • Scrolling via the left and rigt buttons and via bullets
  • Customizing the move from a plane to another one
  • Handling the planes of a Sliding Banner control
  • Making a plane invisible
  • Retrieving the current plane
  • Properties available for a Sliding Banner control
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
A Sliding Banner control can be handled by programming. To do so, use the variable of Sliding Banner control in the code.
The variable of Sliding Banner control corresponds to the number of the active pane. This variable is an integer.
To handle a Sliding Banner control by programming, WEBDEV proposes the Functions for managing the Sliding Banner control.
This help page explains how to handle a Sliding Banner control by programming.
Sliding and browsing planes

Scrolling planes automatically in a Sliding Banner control

To use the automatic scroll in a Sliding Banner control, you can:
  • check "Start the scroll automatically" in the "Details" tab of the control description window
. In this case, the different visible planes of Sliding Banner control will be automatically displayed in the control:
  • according to the order defined in the "General" tab of the Sliding Banner control.
  • with the display duration defined in the "General" tab of the Sliding Banner control.
To stop the automatic scroll, use <Sliding Banner>.StopSliding.

Scrolling via the left and rigt buttons and via bullets

If you are using the left and right buttons as well as the bullets proposed in the Sliding Banner control, no specific programming is required. Going from a plane to another one is automatically managed.
Notes:
  • The order of planes is the one defined in the description window of the Sliding Banner control.
  • The invisible planes are ignored.

Customizing the move from a plane to another one

If you are using specific controls to go from a plane to another one (specific buttons for example, positioned outside control), you have the ability to manage the move from a plane to another one:
Note: The plane numbers and their order are defined in the description window of the Sliding Banner control.
Handling the planes of a Sliding Banner control

Making a plane invisible

You can use ..Visible to make a plane visible (and conversely). The visibility of planes is taken into account when browsing the different planes used by the Sliding Banner control (automatic or programmed browse).
For example, the following code is used to make invisible the plane 5 found in the BAN_Ad control in August:
TodaysDate is Date
IF Today()..Month = 8 THEN
BAN_Ad[5]..Visible = False
END
Tip: You can prepare a plane (for a promotion for example) and to make it visible at a given date, for a given period.

Retrieving the current plane

To retrieve the number of the current plane:
  • perform a simple assignment. For example:
    ActivePlaneNum = NameSlidingBannerControl
  • use ..Value.
Properties available for a Sliding Banner control
Several WLanguage properties can be used to handle:
  • the Sliding Banner control.
  • the planes associated with the Sliding Banner control.
To know the entire list of WLanguage properties that can be used with a Sliding Banner control, see Properties associated with the Sliding Banner control.
Minimum version required
  • Version 23
Comments
Click [Add] to post a comment