- Overview of Scrollbar control
- Window control
- Creating a Scrollbar control
- Image of the Scrollbar control
- Vocabulary associated with the Scrollbar control
Overview of Scrollbar control
The Scrollbar control is used to scroll objects (text, captions, etc.). The scroll of the object is performed through 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:
- On the "Creation" tab, in the "Adjust" group, expand "Scrollbar" and click "Scrollbar".
- Click at the desired location to create the control. The control appears in the editor.
To view the characteristics of the control, select "Description" in the context menu. You can choose the orientation of the scrollbar.
Image of the Scrollbar control
A scrollbar control can be drawn from some system elements or via an image.
To use an image:
- Open the control description window.
- Select the "Style" tab.
- Choose the "Background and Image" element.
- Select a border of type "Image (9-slice scaling)".
- Click the button next to "Border".
- The popup that appears allows you to choose the two images to use (horizontal and vertical scrollbar) via the 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:
|Scroll value||Degree to which the scroll box moves when the user clicks the area between the scroll box and the arrow buttons.|
|Repetition||When 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 value||Value when the scroll box is at the beginning of the scrollbar (1 by default). This value corresponds to the lower bound.|
|Maximum value||Value when the scroll box is at the end of the scrollbar. This value corresponds to the upper bound.|