ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Dialog Box functions
  • Features of the dialog box
  • Line break in the dialog box
  • Special cases
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Displays a custom information message inside a system info box for a specified amount of time. After the timeout, the system window is automatically closed.
Remarks:
  • This information window blocks the application until the time limit has elapsed. To continue running the application, the user must click "OK".
Example
// Affiche une fenêtre d'information
// avec fermeture automatique après 10 secondes
InfoWithTimeout(1000, "L'opération a réussi")
Syntax
InfoWithTimeout(<Timeout> , <Text> [, <Line 2> [... [, <Line n>]]])
<Timeout>: Integer or Duration
Amount of time (expressed in hundredths of a second) before automatically closing the system information window. The minimum timeout is 1 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 1000 ms).
<Text>: Character string
Text to display.
<Line 2>: Optional character string
Text displayed on the next line.
<Line n>: Optional character string
Text displayed in the following lines.
Remarks

Features of the dialog box

  • The title of the dialog box is the title of the current window. To modify this title, use 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.

Line break in the dialog box

The CR string (Carriage Return) can be used to force a break to the next line. For example:
InfoWithTimeout(500, "La fiche XXX a été modifiée." + CR + "Cette fiche va être sauvegardée.")
is equivalent to:
InfoWithTimeout(500, "La fiche XXX a été modifiée.", "Cette fiche va être sauvegardée.")
You also have the ability to use the syntax of multiline strings. For example:
InfoWithTimeout(500,
[
La fiche XXX a été modifiée.

Cette fiche va être sauvegardée.
])

Special cases

  • Timers (TimerSys) are not stopped when this function is called.
  • Windows events are not stopped when this function is called.
  • The text of the buttons is displayed in the system language.
  • Equivalence: The InfoWithTimeout is equivalent to function Info used with function DelayBeforeClosing:
    The following code:
    InfoWithTimeout(1000, "La fiche a été modifiée")
    is equivalent to:
    DelayBeforeClosing(1000)
    Info("La fiche a été modifiée")
Business / UI classification: UI Code
Component: wd300obj.dll
Minimum version required
  • Version 18
This page is also available for…
Comments
consulta
InfoWithTimeout((1000),"Aguarde.... Consultando Sefaz...")

// BLOG COM VIDEO E EXEMPLO

http://windevdesenvolvimento.blogspot.com.br/2017/06/aula-118-windev-dicas-034.html

https://www.youtube.com/watch?v=FcBji3Yr8Jc



De matos
24 Jun. 2017

Last update: 03/27/2025

Send a report | Local help