PC SOFT

WINDEV的在线文档

  • Overview of the Scrollbar control
  • Control of a window
  • Creating a Scrollbar control
  • Image of a Scrollbar control
  • Vocabulary associated with the Scrollbar control
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview of the Scrollbar control

Control of a window

The Scrollbar control is used to scroll objects (text, static, ...). The scroll of the requested object is performed by programming the scrollbar. An horizontal scrollbar is used to scroll the objects horizontally while a vertical scrollbar is used to scroll the objects vertically.

A scrollbar contains the following elements:

Creating a Scrollbar control
To create a Scrollbar control:
  1. In the window editor, click(or select "Insert .. Control .. Scrollbar").In the ribbon:
    • WinDev on the "创建" pane, in the "调整" group, click "滚动条".
  2. Click the position where the control must be created in the window. The control appears in creation mode.
To display the characteristics of the control, select "Description" from the popup menu of the control. You have the ability to choose the orientation of the scrollbar.

Image of a Scrollbar control
15版本和更高版本
WinDev A scrollbar control can be drawn from some system elements or via an image.

To use an image:

  1. Open the description window of the control.
  2. Select the "Style" tab.
  3. Choose the "Background and Image" element.
  4. Select an "Image (9-image mode)" border.
  5. Click the browse button to display a popup for selecting the two images that will be used.
The image catalog proposes several images of scrollbars.
15新版本
WinDev A scrollbar control can be drawn from some system elements or via an image.

To use an image:

  1. Open the description window of the control.
  2. Select the "Style" tab.
  3. Choose the "Background and Image" element.
  4. Select an "Image (9-image mode)" border.
  5. Click the browse button to display a popup for selecting the two images that will be used.
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 description window of the control.
  2. Select the "Style" tab.
  3. Choose the "Background and Image" element.
  4. Select an "Image (9-image mode)" border.
  5. Click the browse button to display a popup for selecting the two images that will be used.
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 valueStep of the scrollbar when the user clicks inside the area located between the box of the scrollbar and the spin button.
RepetitionWhen the mouse button remains pressed on one of the spin buttons, a repetition of the click on the spin button is automatically managed. You have the ability to configure the time interval between these repetitions.
Minimum valueValue of the scrollbar when the box of the scrollbar is located at the beginning of the scrollbar (1 by default). This value corresponds to the lower bound.
Maximum valueValue of the scrollbar when the box of the scrollbar is located at the end of the scrollbar. This value corresponds to the upper bound.