PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Gestion des threads
  • Successive calls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Displays a "Toast" message.
Toasts are a short messages that appear on the screen for a few seconds before fading out without any user intervention. A Toast message does not take focus, it is not modal and it does not interrupt the execution of the application.
Toasts are recommended to show information to the user without locking the execution of the application (e.g.: display a message to indicate that the download has been completed).
Toast message in Android
Versions 17 and later
WINDEVWindows This function is now available for WINDEV applications in Windows.
New in version 17
WINDEVWindows This function is now available for WINDEV applications in Windows.
WINDEVWindows This function is now available for WINDEV applications in Windows.
Versions 18 and later
WEBDEV - Server code This function is now available in WEBDEV Server (Windows and Linux).
New in version 18
WEBDEV - Server code This function is now available in WEBDEV Server (Windows and Linux).
WEBDEV - Server code This function is now available in WEBDEV Server (Windows and Linux).
Versions 20 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 20
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
WINDEV
MyToast is Toast
MyToast.Title = "Did you know?"
MyToast.Text = "AAFs are really cool."
MyToast.Button[1].Caption = "Learn more..."
MyToast.Button[1].ActionClick = FuncHelp
MyToast.Display()
INTERNAL PROCÉDURE FuncHelp
Open("WIN_Help")
END
Syntax

Displaying a toast based on a Toast variable Hide the details

<Toast>.ToastDisplay()
<Toast>: Toast variable
Name of the Variable of type Toast describing the toast to be displayed.
Remarks

Gestion des threads

The function <Toast>.Display can be called from an thread WLanguage (e.g. to notify the user of events occurring during the execution of thread).

Successive calls

If <Toast>.Display is called several times, each toast is displayed once the previous toast has disappeared. This behavior can be modified by using the Property Superimposable of the Variable type Toast. This property allows you to get the same behavior as in version 24: toasts overlap each other.
iPhone/iPad If <Toast>.Display is called several times, only the last call to the function will be taken into account.
Related Examples:
WD Toasts Training (WINDEV): WD Toasts
[ + ] This example shows how to use the ToastDisplay and ToastDisplayIW functions as well as Toast variables. A Toast is a temporary message used to inform the user without interrupting the application.
Business / UI classification: UI Code
Component: wd270obj.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment