PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

X
Y
  • 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
..Grayed is used 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 18 and later
Universal Windows 10 App This property is now available in Windows Store Apps mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store Apps mode.
Universal Windows 10 App This property is now available in Windows Store Apps mode.
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
WindowsLinux This property is now available for WEBDEV sites in Windows and Linux.
New in version 22
WindowsLinux This property is now available for WEBDEV sites in Windows and Linux.
WindowsLinux This property is now available for WEBDEV sites in Windows and Linux.
Example
IF EDT_PRICE > 100 THEN
GR_ShippingCost..Grayed = True
END
Syntax

Finding out whether an element is grayed Hide the details

<Result> = <Element name>..Grayed
<Result>: Boolean
  • True if the element is grayed,
  • False otherwise.
<Element name>: Character string (with or without quotes)
Name of element to use:
  • Name of control,
  • Name of group of controls,
  • WINDEV Name of the window.

Modifying the grayed status for an element Hide the details

<Element name>..Grayed = <New value>
<Element name>: Character string (with or without quotes)
Name of element to use:
  • Name of control,
  • Name of group of controls,
  • WINDEV Name of the window.
<New value>: Boolean
  • True if the element must be grayed,
  • False otherwise.
Remarks

Equivalence

..Grayed set to True is equivalent to ..State equal to the Grayed constant except for the read-only controls that keep their "read-only" status.

Limits

WINDEV ..Grayed applies to all types of controls (except for the cells of status bars).
Universal Windows 10 App ..Grayed has no effect on the HTML controls.
Minimum required version
  • 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
Jan. 30 2019