PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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.
  • Versions 22 and later
    the mode for loading huge images.
    New in version 22
    the mode for loading huge images.
    the mode for loading huge 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:
styleTranslucentWinBorderConfigure the translucent style of windows.
Windows Mobile This constant has no effect.
Versions 22 and later
styleImageLowQuality
New in version 22
styleImageLowQuality
styleImageLowQuality
Configure the load mode of huge images (greater than 640x480).
Windows Mobile This constant is not available.
styleGrayedIconGradientConfigure the grayed effect for the buttons.
Versions 15 and later
styleIndentBorderOverlap
New in version 15
styleIndentBorderOverlap
styleIndentBorderOverlap
Configures the number of pixels between the text and the border in the "overlap" display mode.
<Display mode>: Boolean or Integer
Specifies the new display mode of the element:
  • For managing the translucent effect:
    • True: The windows with a translucent border are displayed with this effect.
    • False: The "Translucent border" effect is ignored.
  • Versions 22 and later
    For managing the load mode of images:
    • 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.
    New in version 22
    For managing the load mode of images:
    • 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 managing the load mode of images:
    • 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 managing the grayed 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
Returns the current display mode of the specified element or the number of offset pixels when displaying captions in the "overlap" mode.
<Element>: Integer constant
Element affected by the setting.
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.
Windows Mobile This constant has no effect.
Versions 22 and later
styleImageLowQuality
New in version 22
styleImageLowQuality
styleImageLowQuality
Configure the load mode of huge 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.
Windows Mobile This constant is not available.
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 buttons are grayed according to Windows 95.
Versions 15 and later
styleIndentBorderOverlap
New in version 15
styleIndentBorderOverlap
styleIndentBorderOverlap
Configures the spacing (in pixels) between the text and the border in the "overlap" display mode.
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.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment