AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
The TriState property is used to:
  • Determine if a check box option supports 3 states (checked, unchecked or undefined) or 2 states (checked or unchecked).
  • Determine if the check boxes of a TreeView control support 3 states (checked, unchecked or undefined) or 2 states (checked or unchecked)
  • Modify the type of a switch option: 3-state or 2-state options.
Remark: If the option manages all three states, it can take the value:
  • 0: option unchecked
  • 1: option checked
  • -1: unspecified option (grayed)
At runtime, 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: If a switch option managing 2 states has a value of -1, a WLanguage error is generated.. Similarly, a WLanguage error occurs if a 3-state option initialized to -1 is changed into a 2-state option.
Ejemplo
// Met une coche dans l'état indéterminé
INT_Interrupteur1[1].TroisEtats = True
INT_Interrupteur1[1] = -1
Sintaxis

Determining if an element supports three states Ocultar los detalles

<Result> = <Element name>.TriState
<Result>: Boolean
  • True if the option supports three states,
  • False otherwise.
<Control used>: Control name
Name of control to use:
  • Option of the Check Box control. The following syntax must be used: <Name of Check Box control>[<Option number>].
  • TreeView control.

Managing the three states of an option in a Check Box control Ocultar los detalles

<Check Box control>[<Option number>].TriState = <Management mode>
<Check Box control>: Control name
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.
Observaciones
The TriState property applies only to:
  • the options of a Check Box control.
  • the TreeView controls (in read-only).
Versión mínima requerida
  • Versión 14
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 18/09/2024

Señalar un error o enviar una sugerencia | Ayuda local