|
|
|
|
- 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.
// 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: | | 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: 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. | | 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: - <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:
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|