This is a blog about Rebol, it's a fantastic free programming language, it permits easily to create complete software with few lines of code. It's cross-platform, so if you write it on Windows, it will work on Linux and Mac, and vice-versa. You can produce also wonderful GUI with just 3 lines of code!

Friday, 18 October 2013

System tray

Do you ever dreamed to put an icon of you program in the system tray? Well, today we'll discover how to do this task with few lines of Rebol code.
System tray is that small zone in the monitor area, near the clock, where there are small icons:

to put the icon just use the ToSystemTray special function. This function was created by Izkata and we'll its code at the end of this post. ToSystemTray needs a block with a string for the tip bubble description, then string and action for every line you want to show with right mouse button; the first action is the default action with left mouse button. You can add any bar you need with the keyword bar. Let's see an example: