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 / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones de cuadros de diálogo
  • Features of the dialog box
  • Special cases
  • Emulation
  • Aplicación en segundo plano: Caso concreto de Android 10
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
Displays a custom message in a system information window.
To close the window, the user must click OK.
WINDEV WINDEV allows you to apply the skin template of your project to this dialog box. For more details, see Customizing dialog boxes.
Ejemplo
User_Name is string = "Florence"

NextTitle("Welcome")
InfoBuild("Hello %1" + CR + "Welcome!", User_Name)
Sintaxis
InfoBuild(<Format string> [, <Parameter 1> [... [, <Parameter N>]]])
<Format string>: Character string
Character string to display containing optional parameters (%1 to %n). To display the % character in the final string, this character must be typed twice (%%).
<Parameter 1>: Optional character string
First parameter that will be inserted into the formatted character string.
<Parameter 1> will replace the %1 character, <Parameter 2> will replace the %2 character, etc.
The number of specified parameters must be equal to or greater than the number of parameters used in <Format string>.
If <Format string> contains more parameters, the additional parameters will be replaced with empty strings.
<Parameter N>: Optional character string
Nth parameter that will be inserted into the formatted character string.
<Parameter 1> will replace the %1 character, <Parameter 2> will replace the %2 character, etc.
The number of specified parameters must be equal to or greater than the number of parameters used in <Format string>.
If <Format string> contains more parameters, the additional parameters will be replaced with empty strings.
Observaciones

Features of the dialog box

  • El título del cuadro de diálogo corresponde al título de la ventana (o página) actual.
    AndroidiPhone/iPad Para cumplir con las especificaciones del sistema, el título del cuadro de diálogo está vacío. Para definir el título, utilice la función NextTitle.
  • Para modificar o definir el título del cuadro de diálogo, utilice la función NextTitle.
  • The message is aligned to the left.
  • The button caption depends on the runtime language of Windows.
  • The maximum number of characters cannot exceed 4096. If a larger string is passed as parameter, it will be truncated.
  • The icon displayed (information tooltip) cannot be modified.
WINDEV Para personalizar este cuadro de diálogo (y todos los cuadros de diálogo del sistema en la aplicación), seleccione la opción "Personalizar ventanas del sistema (Info, YesNo, Confirm, Dialog)" en la pestaña "Estilo" de la descripción del proyecto. Para obtener más información, consulte Personalizar cuadros de diálogo.
WEBDEV - Código Servidor Para personalizar este cuadro de diálogo (y todos los cuadros de diálogo del sistema en el sitio), seleccione la opción "Aplicar tema a los cuadros de diálogo (YesNo y OKCancel)" en la pestaña "Tema" de la ventana de descripción del proyecto.

Special cases

  • Timers (TimerSys) and Windows events are not stopped when this function is called.
  • WINDEV You can use the code wizard to enter the function in the code editor. Depending on the characteristics entered in the wizard, the function used can be different in the code that is automatically generated.
  • WINDEVJava DelayBeforeClosing limits how long the message is displayed. The dialog box is automatically closed. For question or confirmation dialog boxes, the default button corresponds to the expected answer.
  • The text of the buttons is displayed in the system language.
  • iPhone/iPad This function must not be used:
    • in the "Resize" event of the window. Otherwise, the application will be locked.
    • in the "Change the orientation" event of the window.
    • in the "Move to the foreground" event associated with the project.
      Note: The function can also be used in the "Bring to foreground" event of a window..
    • in a thread.
WINDEV

Emulation

A system information window can be emulated by EmulateInfo.
Android

Aplicación en segundo plano: Caso concreto de Android 10

A partir de Android 10, no se puede abrir una ventana si la aplicación está en segundo plano.
La función InfoBuild puede abrir una ventana. Si se utiliza esta función cuando la aplicación está en segundo plano, se producirá un error fatal.
Consejos:
  • Para saber si la aplicación está en segundo plano, utilice la función InBackgroundMode.
  • Si una aplicación necesita interactuar con el usuario cuando está en segundo plano, se puede mostrar una notificación (con el tipo Notification). La aplicación volverá al primer plano cuando se haga clic en la notificación, si la propiedad ActivateApplication se establece en True. También es posible abrir una ventana desde el procedimiento pasado a la propiedad ActionClick.
Para obtener más información, consulte Android 10: Comportamiento de las aplicaciones en segundo plano.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 15
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

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