PC SOFT

WINDEV的在线文档

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

..三状态 is used to:
  • Find out whether an option found in a check box supports 3 states (checked, unchecked or undefined) or 2 states (checked or unchecked).
  • 16版本和更高版本
    Find out whether a treeview control supports 3 states (checked, unchecked or undefined) or 2 states (checked or unchecked)
    16新版本
    Find out whether a treeview control supports 3 states (checked, unchecked or undefined) or 2 states (checked or unchecked)
    Find out whether a treeview control supports 3 states (checked, unchecked or undefined) or 2 states (checked or unchecked)
  • Modify the type of an option found in a check box: option with 3 states or with 2 states.

Note: If the option supports the three states, it can take for value:

  • 0: the option is unchecked
  • 1: the option is checked
  • -1: the option is undefined (grayed)
At run time, if the option supports three states, a first click performed on an unchecked option will check it and a second click will give it an unspecified value.

Caution: A WLanguage error occurs if an option that supports 2 states takes -1 for value. Similarly, a WLanguage error occurs if a 3-state option initialized to -1 is changed into a 2-state option.

例子
// Defines an unspecified option
CBOX_CheckBox11】..三状态=
CBOX_CheckBox11】=-1

语法

Finding out whether an element supports three states 隐藏详细信息

 <Result> = <Element Name>..三状态
<Result>: Boolean
  • if the option supports three states,
  • otherwise.
<Element Name>: Character string (with or without quotes)
Name of the control to use:
  • Option of the Check Box control. The following syntax must be used: <Name of Check Box control>[<Option number>].
  • 16版本和更高版本
    TreeView control.
    16新版本
    TreeView control.
    TreeView control.

Managing the three states of an option in a check box 隐藏详细信息

 <Name of Check Box>[<Option Number>]..三状态 = <Management Mode>
<Name of Check Box>: Character string (with or without quotes)
Name of the Check Box control to use.
<Option Number>: Integer
Number of the option to use.
<Management Mode>: Boolean
  • to manage the three states,
  • otherwise.

注意
..三状态 only applies to:
  • the options of a Check Box control.
  • 16版本和更高版本
    the TreeView controls (in read-only).
    16新版本
    the TreeView controls (in read-only).
    the TreeView controls (in read-only).