|
|
|
|
|
- Features of the dialog box
- Line break in the dialog box
- Special cases
InfoWithTimeout (Function) In french: InfoAvecDélai 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".
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.
])
- 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
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|