ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Various properties
  • Limits: operating system and graphics card
  • Limit: window types
  • Limit: field types
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The Opacity property is used to get and define the opacity percentage for a window, or for controls in a window or page. This gives you the ability to make a window transparent (or a control found in a window or in a page).
Remarks:
  • For a Color variable, the opacity value is not included between 0 and 100 but between 0 and 255.
New in version 2025
WINDEV This property is now available for the Cell control field in version 2025 Update 1.
Example
WINDEV
// Rendre la fenêtre invisible petit à petit (fade out)
i is int
FOR i = 1 TO 100
	FEN_FenêtreSaisie.Opacité = 100 - i
END
Close()
Syntax

Finding out the percentage of opacity applied to a window or to a control (found in a window or in a page) Hide the details

<Percentage of opacity> = <Element used>.Opacity
<Percentage of opacity>: Integer
Percentage of opacity for the specified element (window or control). This percentage is included between 0 (invisible window) and 100 (opaque window).
<Element used>: Name of window, control or group of controls
Name of element to use:
  • Window name,
  • Name of control,
  • WINDEV Name of group of controls.

Modifying the percentage of opacity applied to a window or to a control (found in a window or in a page) Hide the details

<Element used>.Opacity = <Percentage of opacity>
<Element used>: Name of window, control or group of controls
Name of element to use:
  • Window name,
  • Name of control,
  • WINDEV Name of group of controls.
<Percentage of opacity>: Integer
New percentage of opacity that will be applied to the specified element (window or control). This percentage is included between 0 (invisible window) and 100 (opaque window).
Remarks
WINDEV

Limits: operating system and graphics card

The Opacity property can only be used on systems above Windows 7.
If the graphics card does not support transparency, the Opacity property will have no effect.
WINDEV

Limit: window types

The Windows system cannot be used to manage the opacity of the MDI Child windows.
WINDEV

Limit: field types

The Opacity property is only available for the following controls:
  • Edit control,
  • Static,
  • Button,
  • Check Box,
  • Radio Button,
  • List box, combo box,
  • WINDEV ListView,
  • Image,
  • WINDEV Table, TreeView Table,
  • Table cell (in read-only),
  • WINDEV Progress Bar,
  • WINDEV Scrollbar,
  • TreeView,
  • WINDEV Drawing,
  • WINDEV Splitter,
  • WINDEV Carousel,
  • WINDEV Rating.
  • WINDEV Dashboard.
  • WINDEV Group of controls.
  • New in version 2025
    WINDEV Cell control.
Related Examples:
Opacity property Unit examples (WEBDEV): Opacity property
[ + ] This example presents the use of the..Opacity property by programming on a cell.
The cell contains a virtual keyboard used to enter a password.
Transparency on the controls Unit examples (WINDEV): Transparency on the controls
[ + ] Using the transparency on controls.
Transparency on a window Unit examples (WINDEV): Transparency on a window
[ + ] Using the transparency of windows
WD Magnifier Complete examples (WINDEV): WD Magnifier
[ + ] This example enables you to zoom part of the screen with a magnifier.
The maximum zoom value is set to 8.
Summary of the example supplied with WINDEV:
The WLanguge function named dCopyBlt() and the WLanguage property named ..Opacity allow you to perform a capture of the Windows desktop at the location of a window without this window appearing in the screen shot.
This example uses this tip to zoom the part of the screen found below the magnifier.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/13/2025

Send a report | Local help