PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Equivalence
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The Grayed property is used to:
  • Determine if a control (or a group of controls) is grayed out.
  • Gray out 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 26 and later
Android This property is now available for Android 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.
Android Widget This property is now available in Android widget mode.
Android This property is now available for Android applications.
Android Widget This property is now available in Android widget mode.
Example
// Grays out the GR_ShippingCost group of controls according to the value in EDT_Price
IF EDT_Price > 100 THEN
GR_ShippingCost.Grayed = True
END
Syntax

Finding out whether an element is grayed out Hide the details

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

Modifying the grayed out status for an element Hide the details

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

Equivalence

The Grayed property set to True and the State property set to Grayed are equivalent, except for read-only controls that keep their "read-only" state.

Limits

WINDEV Mobile The Grayed property applies to all types of controls (except for status bar cells).
Universal Windows 10 App The Grayed property has no effect on HTML controls.
Versions 20 and later
iPhone/iPadIOS Widget The Grayed property hides a context menu option.
New in version 20
iPhone/iPadIOS Widget The Grayed property hides a context menu option.
iPhone/iPadIOS Widget The Grayed property hides a context menu option.
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