[screenweaver] System Tray Left Click Crash

John Giotta jdgiotta at gmail.com
Fri Oct 7 13:50:01 PDT 2005


Everything works fine until I right-click the icon.
I'm using the documentation example:

swInterface.init();
swEvents.addListener(this);
swWindow.Tray.setIcon(iconFile, "I'm a tray icon hint text.");
swWindow.Tray.enable();
var onTrayMouseEnter:Function = function () {
	feedback.text = "Mouse entered the trayicon";
	swWindow.Menu.setPopupMenu(_root.trayMenuId);
};
var onTrayMouseLeave:Function = function () {
	feedback.text = "Mouse left the trayicon";
	swWindow.Menu.setPopupMenu(0);
};
var onTrayLeftClick:Function = function () {
	feedback.text = "Clicked on tray icon";
};
var onTrayDoubleClick:Function = function () {
	feedback.text = "Double click on tray icon";
	if (_root.visible) {
		swWindow.hide();
	} else {
		swWindow.show();
	}
	_root.visible = !_root.visible;
};



More information about the screenweaver mailing list