PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
New WEBDEV 23 feature!
  • Overview
  • Scrolling and browsing planes
  • Scrolling planes automatically in a Scrolling 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 Scrolling Banner control
  • Making a plane invisible
  • Retrieving the current plane
  • Properties available for a Scrolling 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 Scrolling Banner control can be handled by programming. To do so, use the variable of Scrolling Banner control in the code.
The variable of Scrolling Banner control corresponds to the number of the active pane. This variable is an integer.
To handle a Scrolling Banner control by programming, WEBDEV proposes the Functions for managing the Scrolling Banner control.
This help page explains how to handle a Scrolling Banner control by programming.
Scrolling and browsing planes

Scrolling planes automatically in a Scrolling Banner control

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

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 Scrolling 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 Scrolling 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 Scrolling Banner control.
Handling the planes of a Scrolling Banner control

Making a plane invisible

You have the ability to 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 Scrolling 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 have the ability to 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 = NameBannerControl
  • use ..Value.
Properties available for a Scrolling Banner control
Several WLanguage properties can be used to handle:
  • the Scrolling Banner control.
  • the planes associated with the Scrolling Banner control.
To find out the entire list of WLanguage properties that can be used with a Scrolling Banner control, see Properties associated with the Scrolling Banner control.
Minimum required version
  • Version 23
Comments
Click [Add] to post a comment