Home | Sign in | English EN
  • Characteristics of dialog box
  • Line break in the dialog box
  • Special cases
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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.
// Displays an information window
// with automatic closing after 10 seconds
InfoWithTimeout(1000, "Operation successful")
InfoWithTimeout(<Timeout> , <Text> [, <Line 2> [... [, <Line n>]]])
<Timeout>: Integer ou 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,
  • Versions 23 and later
    the duration in a readable format (e.g., 1 s or 1000 ms).
    New in version 23
    the duration in a readable format (e.g., 1 s or 1000 ms).
    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 on the following lines.

Characteristics of dialog box

  • The title of dialog box corresponds to the title of current window. To modify this title, use NextTitle.
  • The message is aligned to 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 in parameter, it will be truncated.
  • The icon displayed (information tooltip) cannot be modified.
  • WINDEV To customize this dialog box (and all the system dialog boxes in your application), check "Customize system windows (Info, YesNo, Confirm, Dialog)" in the "Style" tab of the project description. For more details, see Customizing dialog boxes.

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, "The form XXX was modified." + CR + "This form will be saved.")

is equivalent to:
InfoWithTimeout(500, "The form XXX was modified.", "This form will be saved.")
You also have the ability to use the syntax of multiline strings. For example:
The XXX form has been modified.
This form will be saved.

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: InfoWithTimeout is equivalent to Info used with DelayBeforeClosing:
    The following code:
    InfoWithTimeout(1000, "Form modified")

    is equivalent to:
    Info("Form modified")
Component: wd270obj.dll
Minimum version required
  • Version 18
This page is also available for…
Click [Add] to post a comment