PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview of Scrollbar control
  • Window control
  • Creating a Scrollbar control
  • Image of the Scrollbar control
  • Vocabulary associated with the Scrollbar 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 of Scrollbar control

Window control

The Scrollbar control is used to scroll objects (text, captions, etc.). The scroll of the object is performed by programming. An horizontal scrollbar is used to scroll objects horizontally and a vertical scrollbar is used to scroll objects vertically.
A scrollbar contains the following elements:
Creating a Scrollbar control
To create a Scrollbar control:
  1. In the ribbon:
    • WINDEV on the "Creation" pane, in the "Adjust" group, expand "Scrollbar" and click "Scrollbar".
    • WINDEV Mobile on the "Creation" pane, in the "Other controls" group, click "Scrollbar".
  2. Click where the control will be created in the window. The control appears in the editor.
To view the control characteristics, select "Description" in the popup menu of the control. You can choose the orientation of the scrollbar.
Image of the Scrollbar control
Versions 15 and later
WINDEV A scrollbar control can be drawn from some system elements or via an image.
To use an image:
  1. Open the control description window.
  2. Select the "Style" tab.
  3. Choose the "Background and Image" element.
  4. Select a border of type "Image (9-slice scaling)".
  5. Click the button next to "Border".
  6. The popup that appears allows you to choose the two images to use (horizontal and vertical scrollbar) via the Drop-down button button:
    • The "Browse" option allows you to use a file that can be accessed from your computer.
    • The "Catalog" option is used to select an image in the image catalog. The image catalog proposes several images of scrollbars.
New in version 15
WINDEV A scrollbar control can be drawn from some system elements or via an image.
To use an image:
  1. Open the control description window.
  2. Select the "Style" tab.
  3. Choose the "Background and Image" element.
  4. Select a border of type "Image (9-slice scaling)".
  5. Click the button next to "Border".
  6. The popup that appears allows you to choose the two images to use (horizontal and vertical scrollbar) via the Drop-down button button:
    • The "Browse" option allows you to use a file that can be accessed from your computer.
    • The "Catalog" option is used to select an image in the image catalog. The image catalog proposes several images of scrollbars.
WINDEV A scrollbar control can be drawn from some system elements or via an image.
To use an image:
  1. Open the control description window.
  2. Select the "Style" tab.
  3. Choose the "Background and Image" element.
  4. Select a border of type "Image (9-slice scaling)".
  5. Click the button next to "Border".
  6. The popup that appears allows you to choose the two images to use (horizontal and vertical scrollbar) via the Drop-down button button:
    • The "Browse" option allows you to use a file that can be accessed from your computer.
    • The "Catalog" option is used to select an image in the image catalog. The image catalog proposes several images of scrollbars.
Vocabulary associated with the Scrollbar control
To easily handle a scrollbar, you must be familiar with the following vocabulary:
NameDefinition
Scroll valueDegree to which the scroll box moves when the user clicks the area between the scroll box and the arrow buttons.
RepetitionWhen the mouse button remains pressed on one of the arrow buttons, the click on the arrow button is automatically repeated. You can configure the time interval between these repetitions.
Minimum valueValue when the scroll box is at the beginning of the scrollbar (1 by default). This value corresponds to the lower bound.
Maximum valueValue when the scroll box is at the end of the scrollbar. This value corresponds to the upper bound.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment