PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Limit: operating system and video card
  • Limit: types of windows
  • Opacity of Action Bar
  • Limit: types of controls
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
..Opacity is used to find out and define the percentage of opacity for a window or for the controls found in a window or in a page. This gives you the ability to make a window transparent (or a control found in a window or in a page).
Notes:
  • WEBDEV - Server code This property can also be applied to a page control.
  • WEBDEV - Server code This property may not be supported by the former browsers (Internet Explorer 5.5 and earlier, ...).
  • For a Color variable, the opacity value is not included between 0 and 100 but between 0 and 255.
Versions 21 and later
iPhone/iPad This property is now available for the iPhone/iPad applications.
Android This property is now available for the Android applications.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
iPhone/iPad This property is now available for the iPhone/iPad applications.
Android This property is now available for the Android applications.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
iPhone/iPad This property is now available for the iPhone/iPad applications.
Android This property is now available for the Android applications.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Example
WINDEV
// Make the window invisible little by little (fade out)
i is int
FOR i = 1 TO 100
WIN_EditWindow..Opacity = 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 Name>..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 Name>: Character string (with or without quotes)
Name of element to use:
  • Name of window,
    iPhone/iPad Not supported.
  • Name of control,
  • Versions 20 and later
    WINDEVAndroidiPhone/iPad Name of group of controls.
    New in version 20
    WINDEVAndroidiPhone/iPad Name of group of controls.
    WINDEVAndroidiPhone/iPad 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 Name>..Opacity = <Percentage of Opacity>
<Element Name>: Character string (with or without quotes)
Name of element to use:
  • Name of window,
    iPhone/iPad Not supported.
  • Name of control,
  • Versions 20 and later
    WINDEVAndroidiPhone/iPad Name of group of controls.
    New in version 20
    WINDEVAndroidiPhone/iPad Name of group of controls.
    WINDEVAndroidiPhone/iPad 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

Limit: operating system and video card

..Opacity can only be used on the following systems:
  • Windows 2000.
  • Windows XP.
  • Windows 2003.
It has no effect in Windows 98, Me and NT 4.0.
..Opacity can only be used on the systems later than Windows 7.
..Opacity has not effect if the transparency effect is not supported by the video card.
WINDEV

Limit: types of windows

The Windows system cannot be used to manage the opacity of the MDI Child windows.
AndroidiPhone/iPad
Versions 21 and later

Opacity of Action Bar

To manage the opacity of the Action Bar:
  1. Display the description window of the Action Bar control.
  2. In the "Details" tab:
    • Check "Make the bar background transparent".
    • Specify which bars are taken into account: "Action Bar" or "Action Bar and system bar".
  3. Validate.
  4. The Action Bar is transparent. The opacity of the Action Bar can be modified with ..Opacity.
See Describing the Action Bar control for more details.
New in version 21

Opacity of Action Bar

To manage the opacity of the Action Bar:
  1. Display the description window of the Action Bar control.
  2. In the "Details" tab:
    • Check "Make the bar background transparent".
    • Specify which bars are taken into account: "Action Bar" or "Action Bar and system bar".
  3. Validate.
  4. The Action Bar is transparent. The opacity of the Action Bar can be modified with ..Opacity.
See Describing the Action Bar control for more details.

Opacity of Action Bar

To manage the opacity of the Action Bar:
  1. Display the description window of the Action Bar control.
  2. In the "Details" tab:
    • Check "Make the bar background transparent".
    • Specify which bars are taken into account: "Action Bar" or "Action Bar and system bar".
  3. Validate.
  4. The Action Bar is transparent. The opacity of the Action Bar can be modified with ..Opacity.
See Describing the Action Bar control for more details.
WINDEVWEBDEV - Server codeAndroidiPhone/iPadPHPAjax

Limit: types of controls

..Opacity is 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,
  • WEBDEV - Server codeWEBDEV - Browser codePHP Formatted display control,
  • WEBDEV - Server codeWEBDEV - Browser codePHP HTML control,
  • WEBDEV - Server codeWEBDEV - Browser codePHP Link control,
  • WEBDEV - Server codePHP HTML static,
  • WEBDEV - Server codePHP Pager,
  • WEBDEV - Server codeWEBDEV - Browser codePHP Image (clickable or not),
  • WEBDEV - Server codeWEBDEV - Browser code Site map path,
  • WEBDEV - Server codeWEBDEV - Browser code Thumbnail,
  • WEBDEV - Server codeWEBDEV - Browser code iFrame,
  • WEBDEV - Server codeWEBDEV - Browser code Chart,
  • Supercontrol,
  • Versions 17 and later
    WINDEV Rating.
    New in version 17
    WINDEV Rating.
    WINDEV Rating.
  • Versions 19 and later
    WINDEVWEBDEV - Server code Dashboard.
    New in version 19
    WINDEVWEBDEV - Server code Dashboard.
    WINDEVWEBDEV - Server code Dashboard.
  • Versions 20 and later
    WINDEVAndroid Group of controls.
    New in version 20
    WINDEVAndroid Group of controls.
    WINDEVAndroid Group of controls.
  • Versions 21 and later
    AndroidiPhone/iPad Action Bar control.
    New in version 21
    AndroidiPhone/iPad Action Bar control.
    AndroidiPhone/iPad Action Bar 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 required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment