MinimizeToTray #3
By glazou on Friday 28 April 2006, 14:37 - Mozilla - Permalink
I will in a very near future submit a patch against the 1.8.0 branch for xulrunner adding a <systrayicon/> element to the toolkit. The patch will offer that for Win32 only at this time. This element offers three methods:
minimizeWindowToTray() minimizeAllWindowsToTray(); restoreFromTray();
I guess no explanation is needed here. The element will accept the following attributes:
contextwill contain the id of a popup element. If this attribute is present on the element, a context click on the tray icon will show the popup above the systray.tooltiptext; this one is hard to understand... If absent, the default will be the title of the xul window that minimized to tray.- most common event handler attributes
In addition, a few new attributes will be available on the root element (window for instance) indicating if the normal minimization should minimize to tray or not, if closing the application should in fact minimize to tray or really close, and the number of clicks on the systray icon needed to restore the window(s).
Stay tuned.

Comments
This is a great contribution for Mozilla!
Well done!!!
Sweet, I'd love for thunderbird to minimize to tray by default... IIRC I requested that before Tbird was even accepting bugs via bugzilla.
I don't want to get picky, but is that name appropriate? Both Windows and GNOME actually call that area the notification area, although system tray has become common lingo. Oh, I dunno, maybe I'm just bored and looking for things to whine about.
Would it be better to extend <window> to support these functions and attributes?
I don't think this is 1.8.0 material.
I'm not sure this is even 1.8 material still, given that code freeze for feature complete is wednesday.
The design of this looks like it is window centric, please get a ui-review from beltzner on it.
In general, the stuff looks fine for an extension, like, easy to hook up, easy to call, but as part of toolkit, it looks like a hack to me still. I'd rather see this as something like a xulrunner app flag. From my experience of stuff in the systray.
Did you reference the bug number anywhere? I glanced over the previous two posts and didn't find it.
note that "systray" is not the name of the area - blogs.msdn.com/oldnewthin...
it's the "notification area".