|
|
|
|
|
- Managing grayed images
- Managing the translucent effect
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.
DrawingStyle(styleGrayedIconGradient, True)
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: | | styleGrayedIconGradient | Configure the grayed effect for the buttons. | styleImageLowQuality | Configure the load mode of large images (greater than 640x480). | styleIndentBorderOverlap | Configures the number of pixels between the text and the border in the "overlap" display mode. | styleTranslucentWinBorder | Configure 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. | | styleGrayedIconGradient | Configure 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. | styleImageLowQuality | Configure 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. | styleIndentBorderOverlap | Configures the spacing (in pixels) between the text and the border in the "overlap" display mode. | styleTranslucentWinBorder | Configure 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:
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|