Add an icon to the task bar

Does anybody have any advice for putting an icon in the task bar. I am making a scheduler and it would be cool to have an incon appear in the windows task bar or along the top on Mac to show that the timer is running and allowing the user to click on it to stop or pause it.

You can use trayicon class from xojo and on Mac the NSStatusItemMBS class from our plugins.
For both you find example projects.