PC SOFT

WINDEV的在线文档

  • Overview
  • Implementation
  • Creating an on/off button
  • Programming
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

On/Off button in a window

Overview
The on/off button is a button that operates like a check box.

If the normal status of the button is as follows:

The first time the user clicks the button, the button remained pressed:

The second time the user clicks the button, the button goes back to its normal status.

18版本和更高版本
WinDevWindows Store apps The On/Off buttons are available in Windows Store apps mode.
18新版本
WinDevWindows Store apps The On/Off buttons are available in Windows Store apps mode.
WinDevWindows Store apps The On/Off buttons are available in Windows Store apps mode.

Implementation

Creating an on/off button

To create an on/off button:
  1. Create a button.
  2. Display the "GUI" tab in the description window of the button and select "On/Off button".
  3. Validate the description window.

Programming

The method for programming an on/off button is the same as the method for programming the other types of buttons (see Handling a button by programming). The only difference is: the status of the on/off button is managed by ..按下.