Toast Display

Displays a "Toast" message.


The Toast is a furtive message that appears during a few seconds on the screen before disappearing with a fade-in effect without any intervention from the user. A Toast message does not take focus, it is not modal and it does not interrupt the execution of the application.

The display of Toasts is recommended to transmit information to the user without locking the execution of the application (example: displaying a message to indicate the end of a download operation).


Example
ToastDisplay("This is a Toast message.")
ToastDisplay("This is a Toast message."toastLongvaMiddlehaCenterLightGreen))



Syntax


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.
Note: The exact display duration depends on the device used.
<Vertical Alignment>: Optional integer
Constant indicating the vertical alignment 

vaBottom
(Default value)
The Toast message is displayed at the bottom.
vaTop
The Toast message is displayed at the top.
vaMiddle
The Toast message is displayed in the middle.
<Horizontal Alignment>: Optional integer
  • Constant indicating the horizontal alignment of message.
haCenter
(Default value)
The Toast message is displayed in the center.
The toast will always be centered horizontally.
haRight
The Toast message is displayed on the right.
This constant is not available.
haLeft
The Toast message is displayed on the left.
This constant is not available.
<Background Color>: Optional integer
Background color used to display the message. This parameter can correspond to:
  

Comments

Popular posts from this blog

Word Processing Control

Read XML String and load the data in Controls

Track Directory