PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

X
Y
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..TriState 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).
  • Versions 16 and later
    Find out whether a treeview control supports 3 states (checked, unchecked or undefined) or 2 states (checked or unchecked)
    New in version 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.
Versions 15 and later
Android This property is now available for the Android applications.
New in version 15
Android This property is now available for the Android applications.
Android This property is now available for the Android applications.
Example
// Defines an unspecified option
CBOX_CheckBox1[1]..TriState = True
CBOX_CheckBox1[1] = -1
Syntax

Finding out whether an element supports three states Hide the details

<Result> = <Element Name>..TriState
<Result>: Boolean
  • True if the option supports three states,
  • False otherwise.
<Element Name>: Character string (with or without quotes)
Name of control to use:
  • Option of the Check Box control. The following syntax must be used: <Name of Check Box control>[<Option number>].
  • Versions 16 and later
    TreeView control.
    New in version 16
    TreeView control.
    TreeView control.

Managing the three states of an option in a check box Hide the details

<Name of Check Box>[<Option Number>]..TriState = <Management Mode>
<Name of Check Box>: Character string (with or without quotes)
Name of Check Box control to use.
<Option Number>: Integer
Number of the option to use.
<Management Mode>: Boolean
  • True to manage the three states,
  • False otherwise.
Remarks
..TriState only applies to:
  • the options of a Check Box control.
  • Versions 16 and later
    the TreeView controls (in read-only).
    New in version 16
    the TreeView controls (in read-only).
    the TreeView controls (in read-only).
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment