With regard to:
hi pesquera, u can catch the events in a string and give the string to the toast.
P.S.
U can use the seconds instead long delay example:
[ ToastDuration = 6 ] it'll display the toast 6 seconds.
If i understood good please let me know otherwise make an examples and i'll try it.
I downloaded your example (I could not run it because I own the previous version of B4A, but I used the code of Activity).
In the initialization code:
Toast.ToastDuration =5000' toast.TOAST_LONG_DELAY
So the time is expressed in milliseconds (it should be specified in the description).
When I press 2 or more buttons in a row, I get the display of the first message and not the next.
Instead, if I use:
Sub btnShowToastMsg_Click
Toast.ToastShow("Hello")
Toast.ToastShow("Bye bye")
End Sub
only the second one will be displayed.
The original Toast manages a message queue, as this last code would show both messages (unfortunately, using the original, I do not have the capability to terminate a message or the whole queue).
Finally, I have not figured out how to use the event (if there is one).
Normally, the text written in the initialization is the name of an event, but it is partial. That is:
Dim btn as Button
btn.Initialize("MyButton")
sub MyButton_Click
...
but for a different object (view), I could have a greater number of events, for example MyButton_DoubleClick.
In short, MyButton is not actually the name of the event; what is the full name of the event if I initialize:
Toast.Initialize("MyToast")
sub MyToast_???
(Personally, I would rename the method "ToastShow" as "Show")