Support for Toast messages


#1

Does Juce support Toast messages, i.e. message boxes which display a message box at a certain position and vanish after a definable period of time?
BubbleMessageComponent is near but i need a component without showing a graphical pointer to another component.


#2

Just use a Component and Timer::callAfterDelay() to close it. You can also use the ComponentAnimator class to fade out the Component.

Rail


#3

I will try that, thank you!


#4

Not natively… Funny enough, a few weeks ago I was in the middle of hacking together Toast support for Android. It shouldn’t be very hard to get it working nicely.

https://developer.android.com/guide/topics/ui/notifiers/toasts.html


#5

Toast behaviour and skinning for Android is quite easy, yes, and i think also doable with Juce :slight_smile: