PC SOFT

WINDEV的在线文档

  • Overview
  • Retrieving the cursor position
  • Modifying the cursor position
  • Properties specific to the management of a slider
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

Handling a Slider control by programming

Overview
WinDev and WinDev Mobile allow you to handle a Slider control by programming. To do so, use the variable of the Slider control in the code.

The variable of the Slider control:

  • corresponds to the name of the slider.
  • is initialized with the position of the slider cursor.

Retrieving the cursor position
To retrieve the position of a slider, use the following syntax:

<Position> = <Slider Name>

<Position> is an integer variable

Note: You also have the ability to use ..值.

Modifying the cursor position
To modify the position of a slider, use the following syntax:

<Slider Name> = <Value>

<Value> is a value included between the minimum value and the maximum value of the slider. These values have been described in the description window of the control or by programming with ..最小界限 and ..最大界限.

Note: You also have the ability to use ..值.

Properties specific to the management of a slider
The following properties are used to manage the characteristics of a slider by programming.
最大界限Used to find out and modify the upper bound of a slider.
最小界限Used to find out and modify the lower bound of a slider.
图片Used to find out and modify the image of a cursor in a standard slider.
图片状态Used to find out and modify the number of drawings found in the image associated with the cursor image in a standard slider.
背景图片Used to find out and modify the background image of a standard slider.
垂直Used to find out whether the standard slider is horizontal or vertical.

To find out the entire list of WLanguage properties that can be used with a Slider control, see Properties associated with the Slider control.