1.How can I change the behavior of the X button on a window.
2.If I do the above what code would I need to make it minimize to the tray.
3.Once in tray. how can I make it so that if you right click, it will bring up a little menu like on other apps. Thanks.