How to display messages in system status bar?

How to display messages in system status bar?

Maybe this topic helps: