PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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
AlternativeText (Property)
In french: TexteAlternatif
The AlternativeTextproperty is used to get and edit the alternative text of controls in a page.
Example
// Displays the product image from the Product data 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 used>.AlternativeText
<Result>: Character string
Alternative text of control.
<Control used>: Control name
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 used>.AlternativeText = <Alternative text>
<Control used>: Control name
Name of the control to be used. 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
New alternative text of the control. This text is a simple text, without HTML tags.
Remarks
  • This property is equivalent to the Caption property on Image, Clickable Image, Captcha, Thumbnail, Bar Code 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 Image, Bar Code, and Thumbnail controls,
    • in the "Details" tab for Captcha controls,
    • in the "UI" tab for Chart controls.
Minimum version required
  • Version 21
Comments
Click [Add] to post a comment