ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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
ScreenshotAllowed (Property)
In french: CopieEcranAutorisée
The ScreenshotAllowed property is used to:
  • Determine whether it is possible to take screenshots of a window,
  • Allow or prevent window screenshots.
Remark:
  • This property is used to prevent taking screenshots of windows that contain sensitive data. If a user requests a screenshot of a window in the foreground, and the ScreenshotAllowed property is set to False, the system will prevent the screenshot from being taken.
  • This property is equivalent to the "Allow window screenshot" option, in the "Details" tab of the window description.
Example
// Prevent from taking a screenshot of the window
WIN_CodeInput.ScreenshotAllowed = False
Syntax

Finding out whether window screenshots are allowed Hide the details

<Result> = <Window>.ScreenshotAllowed
<Result>: Boolean
  • True if screenshots are allowed,
  • False otherwise.
<Window>: Window name
Name of the window used.

Allowing or preventing window screenshots. Hide the details

<Window>.ScreenshotAllowed = <Authorization>
<Window>: Window name
Name of the window used.
<Authorization>: Boolean
  • True if screenshots are allowed,
  • False otherwise.
Remarks
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help