PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
  • Equivalence
  • Limits
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
The Property Grayed allows to:
  • Find out whether a control, a group of controls or a window is grayed or not.
  • Gray or ungray a control, a group of controls or a window.
Versions 20 and later
iPhone/iPad This property is now available for Table controls and table columns in iPhone/iPad applications.
New in version 20
iPhone/iPad This property is now available for Table controls and table columns in iPhone/iPad applications.
iPhone/iPad This property is now available for Table controls and table columns in iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Versions 22 and later
PHP This property is now available for PHP sites.
New in version 22
PHP This property is now available for PHP sites.
PHP This property is now available for PHP sites.
Versions 26 and later
Android This property is now available for Android applications.
Java This property is now available for Java applications.
Android Widget This property is now available in Android Widget mode.
New in version 26
Android This property is now available for Android applications.
Java This property is now available for Java applications.
Android Widget This property is now available in Android Widget mode.
Android This property is now available for Android applications.
Java This property is now available for Java applications.
Android Widget This property is now available in Android Widget mode.
Example
// Grise le groupe de champs GR_FraisDeLivraison en fonction de la valeur du champ SAI_Prix
IF SAI_Prix > 100 THEN
GR_FraisDeLivraison.Grisé = True
END
Syntax

Finding out whether an element is grayed Hide the details

<Result> = <Element used>.Grayed
<Result>: Boolean
  • True if the element is grayed,
  • False otherwise.
<Element used>: Control name or window name
Name of element to use:
  • Name of control,
  • Name of group of controls,
  • WINDEV Mobile Window name.

Modifying the grayed status for an element Hide the details

<Element used>.Grayed = <New value>
<Element used>: Control name or window name
Name of element to use:
  • Name of control,
  • Name of group of controls,
  • WINDEV Mobile Window name.
<New value>: Boolean
  • True if the element must be grayed,
  • False otherwise.
Remarks

Equivalence

The Property Grayed to True is equivalent to the Property Report equal to the constant Grisé except for the fields in get only which keep the report "in get only"..

Limits

WINDEV Mobile The Property Grayed applies to all types of fields (except for message bar boxes).
Universal Windows 10 App The Grayed property has no effect on HTML controls.
Versions 20 and later
iPhone/iPad The Grayed property used on a contextual menu option allows to make this option Invisible.
New in version 20
iPhone/iPad The Grayed property used on a contextual menu option allows to make this option Invisible.
iPhone/iPad The Grayed property used on a contextual menu option allows to make this option Invisible.
Minimum version required
  • Version 17
This page is also available for…
Comments
Video Grayed
https://youtu.be/bYvKSTs61uk

https://windevdesenvolvimento.blogspot.com/2019/01/dicas-2001-windev-comandos-36.html
amarildo
30 Jan. 2019