AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
  • Modifying the image
  • Modifying the background image in a report
  • Limitations
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
The ImageFond property can be used to identify and modify the background image of an element: window, page, field or state..
Remarks:
  • WINDEVWINDEV Mobile The background image of a window or a control is defined in the description window of the element ("General" or "Image" tab).
  • The background image of a report is defined in the report description("Background" tab).
Ejemplo
WINDEV
// Modification de l'image de fond de la fenêtre "FEN_SaisieClient"
FEN_SaisieClient.ImageFond = "C:\MesImages\Image.gif"
// -- Avant impression du bloc Haut_de_page
// Modification de l'image de fond de l'état
// Utiliser une page différente d'un PDF
MyReport.ImageFondImprimée = True
MyReport.ImageFond = PDFExtractPage("Fiche.pdf", 2)
Sintaxis

Finding out the background image of a control, window or report Ocultar los detalles

<Current image> = <Element used>.BackgroundImage
<Current image>: Character string
Name and path of background image. This background image can correspond to:
  • WINDEVWINDEV Mobile The background image associated with a window (except for the MDI parent windows).
  • WINDEVWINDEV Mobile The background image associated with the MDI area of an MDI parent window.
  • WINDEVWINDEV Mobile The image associated with the border of a button.
  • WINDEVWINDEV Mobile The background image associated with a progress bar or slider.
  • The background image of a report.
  • WINDEV The background image of a Shape control.
  • WINDEV The background image of a Repositionable Note control.
  • WEBDEV - Código ServidorWEBDEV - Código NavegadorPHP The background image of pages, iFrames, Cells, Supercontrols, Control templates, Menu option, Popup control.
  • WEBDEV - Código Navegador The background image of dashboard widgets.
<Element used>: Name of control, window, page or report
Name of the element used.

Modifying the background image of a control, window or report Ocultar los detalles

<Element used>.BackgroundImage = <New image>
<Element used>: Name of control, window, page or report
Name of element used.
<New image>: Character string
Name and path (full, relative or UNC) of new background image. This image can correspond to:
  • WINDEVWINDEV Mobile The background image associated with a window (except for the MDI parent windows).
  • WINDEVWINDEV Mobile The background image associated with the MDI area of an MDI parent window.
  • WINDEVWINDEV Mobile The image associated with the border of a button.
  • WINDEVWINDEV Mobile The background image associated with a progress bar or slider.
  • The background image of a report.
  • WINDEV The background image of a Shape control.
  • WINDEV The background image of a Repositionable Note control.
  • WEBDEV - Código ServidorWEBDEV - Código NavegadorPHP The background image of pages, iFrames, Cells, Supercontrols, Control templates, Menu option, Popup control.
  • WEBDEV - Código Navegador The background image of dashboard widgets.
Observaciones

Modifying the image

When changing the image, the image is sought in the application library (WDL file) then on disk at the specified location.
Note: If you attempt to replace the image in the WDL with an image of the same name on the disc, the image will not be changed.

Modifying the background image in a report

The BackgroundImage property is available for all types of reports. The BackgroundImage property must be called before printing the page, for example in the "Before printing the page header block" event.
For a report on form:
  • the BackgroundImage property replaces the background image chosen in edit mode. All types of images supported in the reports are available (PDF, SVG, JPG, PNG, etc.).
  • the image is saved per page: this means you can enter a different background image for each printed page.
  • when the property is assigned, the new background image will be printed starting from the next page break.
In a report other than a form:
  • the image is drawn in "homothetic" mode.
  • this property has an effect only in actual print jobs, in the report viewer and in PDF exports. It has no effect for the other types of export (RTF, XLS, HTML, XML).
Remarks:
  • The margin management specified in the "Background" tab of the report description (option "Ignorar márgenes físicos de la impresora") is ignored: physical margins are systematically ignored..
  • The BackgroundImagePrinted property can be used to print the background image of the report. If this property is set to:
    • False (default value), the print job can be done on pre-printed paper for example. The background image appears only in the report viewer.
    • True, the background image is also printed (or exported to PDF).
    Note: This setting can also be made using the "Real print behavior" option in the "Background" tab of the report description window..

Limitations

WINDEVWINDEV Mobile In a window, the BackgroundImage property applies only to:
  • windows,
  • buttons,
  • progress bars,
  • sliders,
  • reports.
  • WINDEV Shape controls in a window.
  • WINDEV Repositionable Note controls in a window.
Java The BackgroundImage property can only be used with the following elements:
  • Button.
  • Window.
WEBDEV - Código ServidorWEBDEV - Código NavegadorPHP In a page, the BackgroundImage property only applies to:
  • Pages,
  • iFrames,
  • Cells,
  • Supercontrols,
  • Control templates,
  • Menu option,
  • Popup control,
  • Reports.
  • WEBDEV - Código Navegador Dashboard widget.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 20/09/2024

Señalar un error o enviar una sugerencia | Ayuda local