WinBackgroundImage (Function) In french: FenImageFond Modifies the background image of a window and specifies the display mode of this image.
Syntax
<Result> = WinBackgroundImage(<Window used> , <Image name> , <Display>)
<Result>: Boolean - True if the background image was modified,
- False otherwise.
<Window used>: Window name Name of the window to be used. If this parameter corresponds to an empty string (""), the current window is used. <Image name>: Character string Name and full (or relative) path of the image to display in the window. A UNC path can be used. No image is displayed in the window if this parameter does not correspond to an existing image. <Display>: Constant Indicates the display mode of the image: | | imgCentered | Centered: Image centered in the window. | imgH | Homothetic: Image enlarged or reduced (by respecting the proportions of the initial image) to occupy the entire surface of the window. | imgHC | Homothetic centered: Image enlarged or reduced (by respecting the proportions of the initial image) and centered in the window. | imgHCE | Homothetic centered extended: Image enlarged or reduced (by respecting the proportions of the initial image) so that the smaller side of the image is entirely displayed in the window and centered in the window. | imgHCWIS | Homothetic centered without enlargement: If the image can be entirely displayed in the window, it is displayed at 100% and centered in the window. Otherwise, the image is proportionally reduced so that it can be entirely displayed and centered in the window. | imgHE | Homothetic extended: Image enlarged or reduced (by respecting the proportions of the initial image) so that the smaller side of the image is entirely displayed in the window. | imgHWIS | Homothetic without enlargement: If the image can be entirely displayed in the window, it is displayed at 100%. Otherwise, the image is proportionally reduced in order to be entirely displayed. | imgNormal | 100%: Image displayed at 100% in the top left corner of the window. | imgStretched | Stretched: Image stretched across the entire surface of the window. | imgTiled | Tiled: Image displayed at 100% and tiled to occupy the entire surface of control (tile). |
This page is also available for…
|
|
|
|