ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous WINDEV functions
  • Managing grayed images
  • Managing the translucent effect
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
DrawingStyle (Function)
In french: StyleDessin
Allows you to find out and modify:
  • the display mode of grayed buttons found in the windows of your application.
  • the display mode of translucent border for the windows of your application.
  • the mode for loading large images.
Example
// Draws the grayed icons in shades of gray
DrawingStyle(styleGrayedIconGradient, True)
// Removes the translucent border effect
DrawingStyle(styleTranslucentWinBorder, False)
Syntax

Modifying the display mode of elements (buttons, windows) Hide the details

DrawingStyle(<Element> , <Display mode>)
<Element>: Integer constant
Element affected by the setting:
styleGrayedIconGradientConfigure the grayed effect for the buttons.
styleImageLowQualityConfigure the load mode of large images (greater than 640x480).
styleIndentBorderOverlapConfigures the number of pixels between the text and the border in the "overlap" display mode.
styleTranslucentWinBorderConfigure the translucent style of windows.
<Display mode>: Boolean or Integer
New display mode of the element:
  • For the translucent effect:
    • True: Windows with translucent frames are displayed with this effect.
    • Faux: The "Translucent frame" effect on windows is ignored.
  • For the image loading mode:
    • True Fast loading: image loading time takes priority over image quality.
    • Faux: Slower loading: image quality takes priority over loading time.
  • For the grayed out effect:
    • Vrai: Icons and images of grayed buttons are displayed in grayscale.. If this mode is selected, the display may be longer but you will get a better result.
    • Faux: Icons and images of grayed buttons are displayed in automatic grayscale.. In this mode, if the image contains no black pixel, the grayed version does not draw anything.
  • For "saddle" design mode indentation Number of pixels between the frame line and the label text.

Finding out the display mode of elements (buttons, windows) Hide the details

<Result> = DrawingStyle(<Element>)
<Result>: Boolean or Integer
Current display mode of the specified element or number of offset pixels for captions in "overlap" mode.
<Element>: Integer constant
Element affected by the setting.
styleGrayedIconGradientConfigure the grayed effect for the buttons.
If <Result> = True, the image of buttons are displayed in shades of gray.
If <Result> = False, the image of the buttons is grayed according to Windows 95 grayscale system.
styleImageLowQualityConfigure the load mode of large images (greater than 640x480).
If <Result> = True, the load time of images has priority over their quality.
If <Result> = False, the quality of images has priority over their load time.
styleIndentBorderOverlapConfigures the spacing (in pixels) between the text and the border in the "overlap" display mode.
styleTranslucentWinBorderConfigure the translucent style of windows.
If <Result> = True, the windows with a translucent border are displayed with this effect.
If <Result> = False, the "Translucent border" effect is ignored.
Remarks

Managing grayed images

Depending on the display mode chosen by the styleGrayedIconGradient constant:
  • <DisplayMode> = False: The greyed-out buttons are drawn like this:
    Attention: If the button contains no black pixels, the grayed-out version will draw nothing.
  • <DisplayMode> = True: The buttons are drawn in grayscale:
WINDEVReports and QueriesUser code (UMC)

Managing the translucent effect

The management of the translucent effect is equivalent to "Disable the translucent effect of windows" in the context menu of windows.
You also have the ability to disable the management of translucent effect with WinDisableEffect.
Component: wd300obj.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/16/2025

Send a report | Local help