PC SOFT

AYUDA EN LÍNEA
DE WINDEV, WEBDEV Y WINDEV MOBILE


  • Modifying the image
  • Modifying the background image in a report
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Otros
Procedimientos almacenados
BackgroundImage (Property)
 
..BackgroundImage is used to find out and modify the background image of an element: window, page, control or report.
Notes:
  • WINDEVWINDEV Mobile The background image of a window or control is defined in the description window of element ("General" or "Image" tab).
  • The background image of a report is defined in the description window of report ("Background" tab).
Versiones 15 y posteriores
Android This property is now available for the Android applications.
Nueva funcionalidad versión 15
Android This property is now available for the Android applications.
Android This property is now available for the Android applications.
Versiones 17 y posteriores
iPhone/iPad This property is now available for the iPhone/iPad applications.
Nueva funcionalidad versión 17
iPhone/iPad This property is now available for the iPhone/iPad applications.
iPhone/iPad This property is now available for the iPhone/iPad applications.
Versiones 18 y posteriores
Universal Windows 10 App This property is now available in Windows Store apps mode.
Nueva funcionalidad versión 18
Universal Windows 10 App This property is now available in Windows Store apps mode.
Universal Windows 10 App This property is now available in Windows Store apps mode.
Versiones 21 y posteriores
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Nueva funcionalidad versión 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Versiones 22 y posteriores
WEBDEV - Código Navegador This property is now available in browser code.
WEBDEV - Código Servidor This property is now available for WEBDEV sites.
PHP This property is now available for the PHP sites.
Nueva funcionalidad versión 22
WEBDEV - Código Navegador This property is now available in browser code.
WEBDEV - Código Servidor This property is now available for WEBDEV sites.
PHP This property is now available for the PHP sites.
WEBDEV - Código Navegador This property is now available in browser code.
WEBDEV - Código Servidor This property is now available for WEBDEV sites.
PHP This property is now available for the PHP sites.
Ejemplo
WINDEV
// Modify the background image of "WIN_EditCustomer" window
WIN_EditCustomer..BackgroundImage = "C:\MyImages\Image.gif"
Versiones 20 y posteriores
// Before Printing code of Page_header
// Modify the background image of report
// Use a different page found in a PDF
MyReport..BackgroundImagePrinted = True
MyReport..BackgroundImage = PDFExtractPage("Form.pdf", 2)
Nueva funcionalidad versión 20
// Before Printing code of Page_header
// Modify the background image of report
// Use a different page found in a PDF
MyReport..BackgroundImagePrinted = True
MyReport..BackgroundImage = PDFExtractPage("Form.pdf", 2)
// Before Printing code of Page_header
// Modify the background image of report
// Use a different page found in a PDF
MyReport..BackgroundImagePrinted = True
MyReport..BackgroundImage = PDFExtractPage("Form.pdf", 2)
Sintaxis

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

<Current Image> = <Object Name>..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.
  • Versiones 20 y posteriores
    The background image of a report.
    Nueva funcionalidad versión 20
    The background image of a report.
    The background image of a report.
  • Versiones 21 y posteriores
    WINDEV The background image of a Shape control.
    Nueva funcionalidad versión 21
    WINDEV The background image of a Shape control.
    WINDEV The background image of a Shape control.
  • Versiones 21 y posteriores
    WINDEV The background image of a Repositionable Note control.
    Nueva funcionalidad versión 21
    WINDEV The background image of a Repositionable Note control.
    WINDEV The background image of a Repositionable Note control.
  • Versiones 22 y posteriores
    WEBDEV - Código ServidorWEBDEV - Código NavegadorPHP The background image of pages, iFrames, Cells, Supercontrols, Control templates, Menu option, Popup control.
    Nueva funcionalidad versión 22
    WEBDEV - Código ServidorWEBDEV - Código NavegadorPHP The background image of pages, iFrames, Cells, Supercontrols, Control templates, Menu option, Popup control.
    WEBDEV - Código ServidorWEBDEV - Código NavegadorPHP The background image of pages, iFrames, Cells, Supercontrols, Control templates, Menu option, Popup control.
  • Versiones 22 y posteriores
    WEBDEV - Código Navegador The background image of dashboard Widgets.
    Nueva funcionalidad versión 22
    WEBDEV - Código Navegador The background image of dashboard Widgets.
    WEBDEV - Código Navegador The background image of dashboard Widgets.
<Object Name>: Character string (with or without quotes)
Name of object to use.

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

<Object Name>..BackgroundImage = <New Image>
<Object Name>: Character string (with or without quotes)
Name of object to use.
<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.
  • Versiones 20 y posteriores
    The background image of a report.
    Nueva funcionalidad versión 20
    The background image of a report.
    The background image of a report.
  • Versiones 21 y posteriores
    WINDEV The background image of a Shape control.
    Nueva funcionalidad versión 21
    WINDEV The background image of a Shape control.
    WINDEV The background image of a Shape control.
  • Versiones 21 y posteriores
    WINDEV The background image of a Repositionable Note control.
    Nueva funcionalidad versión 21
    WINDEV The background image of a Repositionable Note control.
    WINDEV The background image of a Repositionable Note control.
  • Versiones 22 y posteriores
    WEBDEV - Código ServidorWEBDEV - Código NavegadorPHP The background image of pages, iFrames, Cells, Supercontrols, Control templates, Menu option, Popup control.
    Nueva funcionalidad versión 22
    WEBDEV - Código ServidorWEBDEV - Código NavegadorPHP The background image of pages, iFrames, Cells, Supercontrols, Control templates, Menu option, Popup control.
    WEBDEV - Código ServidorWEBDEV - Código NavegadorPHP The background image of pages, iFrames, Cells, Supercontrols, Control templates, Menu option, Popup control.
  • Versiones 22 y posteriores
    WEBDEV - Código Navegador The background image of dashboard Widgets.
    Nueva funcionalidad versión 22
    WEBDEV - Código Navegador The background image of dashboard Widgets.
    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 an attempt is made to replace the image found in the WDL by an image with the same name found on disk, the change of image is not performed.
Versiones 20 y posteriores

Modifying the background image in a report

..BackgroundImage is available for all types of reports. ..BackgroundImage must be called before starting the page print, for example in the "Before printing the page header block" process.
For a report on form,
  • ..BackgroundImage replaces the background image chosen in edit. All types of images supported in the reports are available (PDF, SVG, JPG, PNG, ...).
  • the image is saved by page: therefore, a different background image can be specified for each printed page.
  • when the property is assigned, the new background image will be printed from the next page skip.
In a report other than form:
  • the image is drawn in "homothetic".
  • this property has an effect in the actual print, in the print preview and in PDF export. It has no effect for the other types of export (RTF, XLS, HTML, XML).
Note: The management of margins specified in the "Background" tab of report description ("Ignore the physical margins of the printer") is ignored: the physical margins are systematically ignored.
Nueva funcionalidad versión 20

Modifying the background image in a report

..BackgroundImage is available for all types of reports. ..BackgroundImage must be called before starting the page print, for example in the "Before printing the page header block" process.
For a report on form,
  • ..BackgroundImage replaces the background image chosen in edit. All types of images supported in the reports are available (PDF, SVG, JPG, PNG, ...).
  • the image is saved by page: therefore, a different background image can be specified for each printed page.
  • when the property is assigned, the new background image will be printed from the next page skip.
In a report other than form:
  • the image is drawn in "homothetic".
  • this property has an effect in the actual print, in the print preview and in PDF export. It has no effect for the other types of export (RTF, XLS, HTML, XML).
Note: The management of margins specified in the "Background" tab of report description ("Ignore the physical margins of the printer") is ignored: the physical margins are systematically ignored.

Modifying the background image in a report

..BackgroundImage is available for all types of reports. ..BackgroundImage must be called before starting the page print, for example in the "Before printing the page header block" process.
For a report on form,
  • ..BackgroundImage replaces the background image chosen in edit. All types of images supported in the reports are available (PDF, SVG, JPG, PNG, ...).
  • the image is saved by page: therefore, a different background image can be specified for each printed page.
  • when the property is assigned, the new background image will be printed from the next page skip.
In a report other than form:
  • the image is drawn in "homothetic".
  • this property has an effect in the actual print, in the print preview and in PDF export. It has no effect for the other types of export (RTF, XLS, HTML, XML).
Note: The management of margins specified in the "Background" tab of report description ("Ignore the physical margins of the printer") is ignored: the physical margins are systematically ignored.

Limits

WINDEVWINDEV Mobile In a window, ..BackgroundImage only applies to the:
  • windows,
  • buttons,
  • progress bars,
  • sliders,
  • Versiones 20 y posteriores
    reports.
    Nueva funcionalidad versión 20
    reports.
    reports.
  • Versiones 21 y posteriores
    WINDEV Shape controls in a window.
    Nueva funcionalidad versión 21
    WINDEV Shape controls in a window.
    WINDEV Shape controls in a window.
  • Versiones 21 y posteriores
    WINDEV Repositionable Note controls in a window.
    Nueva funcionalidad versión 21
    WINDEV Repositionable Note controls in a window.
    WINDEV Repositionable Note controls in a window.
Java ..BackgroundImage only applies the following elements:
  • Button.
  • Window.
Versiones 22 y posteriores
WEBDEV - Código ServidorWEBDEV - Código NavegadorPHP In a page, ..BackgroundImage only applies to the:
  • Pages,
  • iFrames,
  • Cells,
  • Supercontrols,
  • Control templates,
  • Menu option,
  • Popup control,
  • Versiones 20 y posteriores
    Reports.
    Nueva funcionalidad versión 20
    Reports.
    Reports.
  • WEBDEV - Código Navegador Dashboard widget.
Nueva funcionalidad versión 22
WEBDEV - Código ServidorWEBDEV - Código NavegadorPHP In a page, ..BackgroundImage only applies to the:
  • Pages,
  • iFrames,
  • Cells,
  • Supercontrols,
  • Control templates,
  • Menu option,
  • Popup control,
  • Versiones 20 y posteriores
    Reports.
    Nueva funcionalidad versión 20
    Reports.
    Reports.
  • WEBDEV - Código Navegador Dashboard widget.
WEBDEV - Código ServidorWEBDEV - Código NavegadorPHP In a page, ..BackgroundImage only applies to the:
  • Pages,
  • iFrames,
  • Cells,
  • Supercontrols,
  • Control templates,
  • Menu option,
  • Popup control,
  • Versiones 20 y posteriores
    Reports.
    Nueva funcionalidad versión 20
    Reports.
    Reports.
  • WEBDEV - Código Navegador Dashboard widget.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Video BackgroundImage
https://youtu.be/mZCAUmMzZDA

https://windevdesenvolvimento.blogspot.com/2019/03/dicas-2058-windev-comandos-52.html

// BTN_ALTERAR_FUNDO_BACKGROUNDIMAGE
WIN_COMANDOS2..BackgroundImage = "C:\TEMP\011_ErpMatos_1.png"
amarildo
28 03 2019