PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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
Used to make a layer found in a WDPIC image visible or invisible.
Versions 24 and later
Windows This function is now available for WEBDEV sites in Windows.
New in version 24
Windows This function is now available for WEBDEV sites in Windows.
Windows This function is now available for WEBDEV sites in Windows.
Example
// Affiche l'image d'un produit dans un champ Image
PROCÉDURE AfficheProduit(sChampImage is Control, sNomWDPic is string, ...
bPromo is boolean)
 
MonImage is WDPic
MonImage.FileName = sNomWDPic
ImageLayerVisible(MonImage, "Calque Promo", bPromo)
 
sChampImage.Valeur = MonImage
Syntax
<Result> = ImageLayerVisible(<WDPic image> , <Layer name> , <Visible>)
<Result>: Boolean
  • True if the layer exists,
  • False if the layer does not exist. In case of failure, the ErrorOccurred variable is set to True and ErrorInfo returns the details of the error.
<WDPic image>: WDPic variable
Name of WDPic variable corresponding to the image used.
<Layer name>: Character string
Name of layer to use. This name must be identical to the name defined in the image editor.
<Visible>: Boolean
  • True if the layer must be visible,
  • False if the layer must be invisible.
Remarks
A layer can be made visible or invisible through programming only if the layer includes the "Visible/Invisible through programming" option. This option is available in the context menu of layer. This option can be enabled:
  • in the image editor,
  • in the Image Editor control.
For more details, see Managing layers.
Business / UI classification: UI Code
Component: wd270pic.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment