PC SOFT

WINDEV的在线文档

  • Overview of the Slider control
  • Window control
  • Creating a Slider control
  • Creating a Slider control
  • Notes
  • Modifying the value of the slider at run time with the mouse wheel
  • Swap
  • Examples
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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 Slider control

Window control

A slider control is used to select a value between two bounds. Its operating mode is similar to the operating mode of a scrollbar. The current value is identified by a cursor that the user moves with the mouse (or with the mouse wheel).

Some visual marks can be displayed. The cursor does not snap to these marks: the cursor of the slider is moved unit by unit.

19版本和更高版本
WinDevLinux This type of control is now available for the WinDev applications in Linux.
WinDevWindows Store apps This type of control is now available for the applications in Windows Store apps mode.
19新版本
WinDevLinux This type of control is now available for the WinDev applications in Linux.
WinDevWindows Store apps This type of control is now available for the applications in Windows Store apps mode.
WinDevLinux This type of control is now available for the WinDev applications in Linux.
WinDevWindows Store apps This type of control is now available for the applications in Windows Store apps mode.

You have the ability to create:
  • standard sliders
  • WinDev round sliders

Creating a Slider control

Creating a Slider control

To create a Slider control:
  1. In the window editor, clickto create a standard slider. The arrow found below this icon is used to select the type of slider to create (standard slider or round slider).
    On the "创建" pane, in the "显示控件" group:
    • WinDev expand "Slider" and select the type of slider to create:
    • Windows Store apps click "Slider".
  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.

Notes
WinDev

Modifying the value of the slider at run time with the mouse wheel

The user can modify the value of the slider with the mouse wheel: the cursor will move according to the step (the marks) defined for the slider.

WinDev

Swap

WinDev allows you to change a standard Slider into a round Slider (and conversely):
  1. Select the control to transform.
  2. Select "Control .. Swap .. Slider/Round slider".On the "修改" pane, in the "转换" group, expand "重构和切换" and select "Slider/Round slider".

Examples

Several examples of sliders are supplied with WinDev. These sliders are accessible from the "Wizards, Examples and Components" pane:
  1. Click the "Controls" button.
  2. In the list of controls, select "Slider".