- Features of the dialog box
- Line break in the dialog box
- Special cases
- Application in the background: Specific case from Android 10
InfoAsynchronous (Function) In french: InfoAsynchrone Displays a non-blocking custom message in a system information window.
Remarks: - This is a non-blocking information window. The WLanguage code that follows the call to InfoAsynchronous continues to run. To close the window, the user must click the OK button to validate. When the user clicks "OK", the code of a WLanguage procedure can be run.
- In the WLanguage code following the call to the function, another modal window cannot be opened before closing the dialog box.
WINDEV allows you to apply the skin template of your project to this dialog box. For more details, see Customize dialog boxes.
Nom_utilisateur is string Nom_utilisateur = "Florence" InfoAsynchronous("Bonjour" + Nom_utilisateur, "Bienvenue!", MaProcédure_Info) INTERNAL PROCÉDURE MaProcédure_Info() ToastDisplay("Fermeture de l'info") END
Syntax
InfoAsynchronous(<Text> [, <WLanguage procedure>])
<Text>: Character string Text to display. <WLanguage procedure>: Optional name of procedure or lambda procedure Name of the WLangage procedure ("callback") called when the user clicks "OK" in the information window. This WLanguage procedure can correspond to: - a name of a global procedure,
- a name of an internal procedure,
- a lambda procedure.
If this parameter is not specified, no procedure is run when the user clicks "OK" in the information window. Remarks Line break in the dialog box The CR string (Carriage Return) can be used to force a break to the next line. For example:
InfoAsynchronous("La fiche XXX a été modifiée." + CR + "Cette fiche va être sauvegardée.")
You also have the ability to use the syntax of multiline strings. For example:
InfoAsynchronous( [ La fiche XXX a été modifiée. Cette fiche va être sauvegardée. ])
Versions 25 and later New in version 25
This page is also available for…
|
|
|