PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

X
Y
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
AlternativeText (Property)
In French: TexteAlternatif
..AlternativeText is used to find out and modify the alternative text for the page controls.
Versions 23 and later
WEBDEV - Browser code This property is now available in browser code.
New in version 23
WEBDEV - Browser code This property is now available in browser code.
WEBDEV - Browser code This property is now available in browser code.
Example
// Displays the product image from the Product file
IMG_Product = Product.Image
IMG_Product..AlternativeText = Product.Name
Syntax

Finding out the alternative text associated with the control Hide the details

<Result> = <Control>..AlternativeText
<Result>: Character string
Alternative text of control.
<Control>: Character string (with or without quotes)
Name of control whose alternative text is requested. This control can be:
  • an Image control or a clickable image,
  • a Captcha control,
  • a Thumbnail control,
  • a Bar Code control,
  • a Chart control.

Modifying the alternative text associated with the control Hide the details

<Control>..AlternativeText = <Alternative Text>
<Control>: Character string (with or without quotes)
Name of control to use. This control can be:
  • an Image control or a clickable image,
  • a Captcha control,
  • a Thumbnail control,
  • a Bar Code control,
  • a Chart control.
<Alternative Text>: Character string with quotes
New alternative text of the control. This text is a simple text, without HTML tags.
Remarks
  • This property is equivalent to ..Caption applied to the Image controls, Clickable Image controls, Captcha controls, Thumbnail controls, Bar Code controls and Chart controls.
  • The alternative text of an image ("alt" attribute in HTML) indicates the text displayed by the browser when the image is not available. This text is also used instead of the image for the accessibility of pages.
  • The alternative text can also be defined in the editor in the description window of the control. For example:
    • in the "Help" tab for the Image or Bar Code controls,
    • in the "Details" tab for the Captcha or Thumbnail controls,
    • in the "GUI" tab for the Chart controls.
Minimum required version
  • Version 21
Comments
Click [Add] to post a comment