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 / Controles, páginas y ventanas / Funciones de ventanas
  • Scope of DelayBeforeClosing
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
Limits the display duration of a window or dialog box.
If no user action is performed, when the specified amount of time is reached:
  • for a window, the code of a window button will be run.
  • in the case of an "Information" or "Error" dialog box, the dialog box is automatically closed (Info, Error and Warning functions).
  • in the case of a "Question" or "Confirmation" dialog box, the expected response corresponds to the default button (YesNo, Dialog, Confirm and OKCancel functions).
The amount of time specified for the automatic closing is ignored in the following cases:
  • when the user clicks a button.
  • if the user modifies a control.
  • if the user presses any keyboard key.
By default, dialog boxes are blocking: as long as these windows are open, the application is blocked..
Ejemplo
// Fermeture de la boîte de dialogue dans 2 secondes
DelayBeforeClosing(200)
Error("L'application va se terminer")
EndProgram()
// Exécution du code de BTN_Ferme dans 5 secondes
DelayBeforeClosing(MyWindow, BTN_Ferme, 500)
// Le code du bouton BTN_Ferme appelle la fonction Ferme
Sintaxis

Timeout before closing the dialog boxes Ocultar los detalles

<Result> = DelayBeforeClosing([<Timeout>])
<Result>: Integer
Timeout that was previously defined (before the modification performed by DelayBeforeClosing).
<Timeout>: Optional integer or optional Duration
New timeout before closing the dialog boxes of application (expressed in hundredths of a second). This parameter can correspond to:
  • an integer corresponding to the number of hundredths of a second,
  • a Duration variable,
  • the duration in a readable format (e.g., 1 s or 10 ms).
If this parameter is set to 0 or omitted, the delay is infinite (default): dialog boxes are not closed automatically..

Timeout before closing the windows Ocultar los detalles

<Result> = DelayBeforeClosing(<Window name> , <Button name> [, <Timeout>])
<Result>: Integer
Timeout that was previously defined (before the modification performed by DelayBeforeClosing).
<Window name>: Character string
Name of window for which an automatic process will be managed.
<Button name>: Character string
Name of button whose code will be run after the specified timeout. If the window must be closed, the button code must contain Close.
<Timeout>: Optional integer or optional Duration
Amount of time before running the click code of specified button (expressed in hundredths of a second).
This parameter can correspond to:
  • an integer corresponding to the number of hundredths of a second,
  • a Duration variable,
  • the duration in a readable format (e.g., 1 s or 10 ms).
If this parameter is set to 0 or omitted, the delay is infinite (default case): the specified window will not be automatically closed and the previously set delay is cancelled..
Observaciones

Scope of DelayBeforeClosing

  • Dialog boxes: The DelayBeforeClosing function is taken into account for all dialog boxes opened by the application, regardless of the code where this function is called..
    To restore a standard operating mode, use DelayBeforeClosing and specify no timeout.
  • Window: The DelayBeforeClosing function applies only to the specified window.. When this window is closed, the function is deactivated: if this window is opened again (function Open), the window will not be closed again automatically.. You need to call DelayBeforeClosing again.
Clasificación Lógica de negocio / UI: Código UI
Componente: wd300obj.dll
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: 25/03/2025

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