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 22 and later
WEBDEV - Server codeWindowsLinux This property is now available for WEBDEV sites in Windows and Linux.
WEBDEV - Browser code This property is now available in browser code.
PHP This property is now available for PHP sites.
New in version 22
WEBDEV - Server codeWindowsLinux This property is now available for WEBDEV sites in Windows and Linux.
WEBDEV - Browser code This property is now available in browser code.
PHP This property is now available for PHP sites.
WEBDEV - Server codeWindowsLinux This property is now available for WEBDEV sites in Windows and Linux.
WEBDEV - Browser code This property is now available in browser code.
PHP This property is now available for PHP sites.
Versions 26 and later
WEBDEV - Server codeWEBDEV - Browser code This property is now available for Rich Text Area controls.
New in version 26
WEBDEV - Server codeWEBDEV - Browser code This property is now available for Rich Text Area controls.
WEBDEV - Server codeWEBDEV - Browser code This property is now available for Rich Text Area controls.
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,

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,
<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

Versions 22 and later
WEBDEV - Server code The Grayed property does not apply to the following controls:
  • Menu control,
  • Web Camera control,
  • Pager control,
  • iFrame control,
  • Drawer control,
  • Cell,
  • Silverlight control,
  • Flex control,
  • Flash control,
  • Captcha control,
  • Progress Bar control,
  • Social Link control, ...
See the list of available properties for the desired control.
New in version 22
WEBDEV - Server code The Grayed property does not apply to the following controls:
  • Menu control,
  • Web Camera control,
  • Pager control,
  • iFrame control,
  • Drawer control,
  • Cell,
  • Silverlight control,
  • Flex control,
  • Flash control,
  • Captcha control,
  • Progress Bar control,
  • Social Link control, ...
See the list of available properties for the desired control.
WEBDEV - Server code The Grayed property does not apply to the following controls:
  • Menu control,
  • Web Camera control,
  • Pager control,
  • iFrame control,
  • Drawer control,
  • Cell,
  • Silverlight control,
  • Flex control,
  • Flash control,
  • Captcha control,
  • Progress Bar control,
  • Social Link control, ...
See the list of available properties for the desired control.
Versions 22 and later
WEBDEV - Browser code The Grayed property does not apply to the following controls:
  • Menu control,
  • Web Camera control,
  • Pager control,
  • iFrame control,
  • Drawer control,
  • Table control,
  • Thumbnail control,
  • Looper control,
  • Linear Looper control,
  • Cell,
  • Table column,
  • Silverlight control,
  • Flex control,
  • Flash control,
  • Captcha control,
  • Progress Bar control,
  • Social Link control, ...
See the list of available properties for the desired control.
New in version 22
WEBDEV - Browser code The Grayed property does not apply to the following controls:
  • Menu control,
  • Web Camera control,
  • Pager control,
  • iFrame control,
  • Drawer control,
  • Table control,
  • Thumbnail control,
  • Looper control,
  • Linear Looper control,
  • Cell,
  • Table column,
  • Silverlight control,
  • Flex control,
  • Flash control,
  • Captcha control,
  • Progress Bar control,
  • Social Link control, ...
See the list of available properties for the desired control.
WEBDEV - Browser code The Grayed property does not apply to the following controls:
  • Menu control,
  • Web Camera control,
  • Pager control,
  • iFrame control,
  • Drawer control,
  • Table control,
  • Thumbnail control,
  • Looper control,
  • Linear Looper control,
  • Cell,
  • Table column,
  • Silverlight control,
  • Flex control,
  • Flash control,
  • Captcha control,
  • Progress Bar control,
  • Social Link control, ...
See the list of available properties for the desired control.
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment