ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous WINDEV functions
  • Managing grayed images
  • Managing the translucent effect
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
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: The windows with a translucent border are displayed with this effect.
    • False: The "Translucent border" effect is ignored.
  • For the image loading mode:
    • True: Fast load: the time for loading images has priority over their quality.
    • False: Slower load: the quality of images has priority over their load time.
  • For the grayed out effect:
    • True: The icons, images of the grayed buttons are displayed in shades of gray. If this mode is selected, the display may be longer but you will get a better result.
    • False: The icons, images of the grayed buttons are displayed in automatic shades of gray. In this mode, if the image contains no black pixel, the grayed version does not draw anything.
  • For the offset of "overlap" drawing mode: Number of pixels for the spacing between the border's line and the text of the caption.

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:
  • <Display Mode> = False: The buttons are drawn as follows:
    Caution: If the button contains no black pixel, the grayed version will not draw anything.
  • <Display Mode> = True: The buttons are drawn in shades of grays:
WINDEVReports and QueriesUser code (UMC)

Managing the translucent effect

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

Last update: 05/26/2022

Send a report | Local help