PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

  • Management of threads
  • Successive calls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 application.
Toasts are recommended to show information to the user without locking the execution of application (example: displaying a message to indicate the end of download).
Toast message in Android
Linux This function is available for the Linux WEBDEV sites only.
Versions 17 and later
Windows This function is now available for the WINDEV applications in Windows.
New in version 17
Windows This function is now available for the WINDEV applications in Windows.
Windows This function is now available for the WINDEV applications in Windows.
Versions 18 and later
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Server code This function is now available in WEBDEV Server (Windows and Linux).
PHP This function is now available for PHP sites.
New in version 18
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Server code This function is now available in WEBDEV Server (Windows and Linux).
PHP This function is now available for PHP sites.
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Server code This function is now available in WEBDEV Server (Windows and Linux).
PHP This function is now available for PHP sites.
Example
ToastDisplay("This is a Toast message.")
ToastDisplay("This is a Toast message.", toastLong, vaMiddle, haCenter, LightGreen)
Syntax

Defining and displaying a toast Hide the details

ToastDisplay(<Message> [, <Display duration> [, <Vertical alignment> [, <Horizontal alignment> [, <Background color>]]]])
<Message>: Character string (with quotes)
Message to display. This message can be multiline
<Display duration>: Optional integer
Constant indicating the display duration of Toast message:
toastShort
(Default value)
The Toast message will be displayed during a short period of time.
toastLongThe Toast message will be displayed during a long period of time.

Remark: The exact display duration depends on the device used.
<Vertical alignment>: Optional integer
Constant indicating the vertical alignment of message. This alignment is relative:
  • WEBDEV - Server codeWEBDEV - Browser codePHP to the page.
vaBottom
(Default value)
The Toast message is displayed at the bottom.
vaTopThe Toast message is displayed at the top.
vaMiddleThe Toast message is displayed in the middle.
<Horizontal alignment>: Optional integer
Constant indicating the horizontal alignment of message. This alignment is relative:
  • WEBDEV - Server codeWEBDEV - Browser codePHP to the page.
haCenter
(Default value)
The Toast message is displayed in the center.
haRightThe Toast message is displayed on the right.
haLeftThe Toast message is displayed on the left.
<Background color>: Optional integer
Background color used to display the message. This parameter can correspond to:
Remarks

Management of threads

ToastDisplay can be called from a WLanguage thread (to notify the user of events that occurred during the thread execution for example).

Successive calls

If ToastDisplay is called several times, toasts overlap each other. If ToastDisplay is called several times, each toast is displayed once the previous toast has disappeared. This behavior can be modified by using the ..Overlayable property of the Toast variable. This property allows you to get the same behavior as in version 24: toasts overlap each other.
Related Examples:
Android System Android (WINDEV Mobile): Android System
[ + ] This application is a tutorial example presenting some of the new features of WINDEV Mobile for Android.
The following system functions are used:
- NFC
- Multimedia control
- Brightness
- Volume
- WIFI
- Bluetooth
- Toast
- Progress Bar control
- 9-image mode
- Compass
- Accelerometer
- Camera control
- LED
- Vibrations
- Notifications
- Drawing functions
- Internet
Business / UI classification : UI Code
Component : wd250obj.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Notification
https://repository.windev.com/resource.awp?file_id=281474976710849;notificationdisplay
BOLLER
30 Aug. 2019
Exemplo Toastdisplay
Exemplo Toastdisplay

ToastDisplay("Mensagem que apareça",toastLong,vaTop,haCenter,LightBlue)

ToastDisplay("Outra Mensagem")

//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/07/curso-windev-funcoes-dialogo-4_12.html
https://www.youtube.com/watch?v=m3471CzfOIk
De matos AMARILDO
12 Jul. 2016