PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
Used to make a layer found in a WDPIC image visible or invisible.
Versions 24 and later
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
New in version 24
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
Example
// Displays the product image in an Image control
PROCEDURE DisplayProduct(sImageControl is Control, sWDPicName is string, ...
bPromo is boolean)
 
MyImage is WDPic
MyImage..FileName = sWDPicName
 
sImageControl..Value = MyImage
sImageControl..LayerVisible("Promo layer", bPromo)
Syntax
<Result> = <WDPic Image>.LayerVisible(<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 error details.
<WDPic Image>: WDPic variable
Name of WDPic variable corresponding to the image used.
<Layer name>: Character string (with quotes)
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 by programming only if the layer includes the "Visible/Invisible by programming" option. This option is available in the popup menu of layer. This option can be enabled:
  • in the image editor,
  • in the Image Editor control.
See Managing layers for more details.
Business / GUI classification : GUI Code
Component : wd250pic.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment