+2007-03-29 Everaldo Canuto <everaldo@simios.org>
+
+ * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
+ added to theme, now we can create themes that uses diferent notify engines
+ like notification-daemon from galago project or growl for Mac OS.
+
2007-03-28 Everaldo Canuto <everaldo@simios.org>
* NotifyIcon.cs: Prevent Balloon to show in task bar.
#region BalloonWindow
#if NET_2_0
+ public abstract void ShowBalloonWindow (IntPtr handle, int timeout, string title, string text, ToolTipIcon icon);
public abstract void DrawBalloonWindow (Graphics dc, Rectangle clip, NotifyIcon.BalloonWindow control);
public abstract Rectangle BalloonWindowRect (NotifyIcon.BalloonWindow control);
#endif
#region BalloonWindow
#if NET_2_0
+ NotifyIcon.BalloonWindow balloon_window;
+
+ public override void ShowBalloonWindow (IntPtr handle, int timeout, string title, string text, ToolTipIcon icon)
+ {
+ Control control = Control.FromHandle(handle);
+
+ if (control == null)
+ return;
+
+ if (balloon_window != null) {
+ balloon_window.Close ();
+ balloon_window.Dispose ();
+ }
+
+ balloon_window = new NotifyIcon.BalloonWindow (handle);
+ balloon_window.Title = title;
+ balloon_window.Text = text;
+ balloon_window.Timeout = timeout;
+ balloon_window.Show ();
+ }
+
public override void DrawBalloonWindow (Graphics dc, Rectangle clip, NotifyIcon.BalloonWindow control)
{
Brush solidbrush = ResPool.GetSolidBrush(this.ColorInfoText);
}
#if NET_2_0
- NotifyIcon.BalloonWindow balloon_window;
-
internal override void SystrayBalloon(IntPtr handle, int timeout, string title, string text, ToolTipIcon icon)
{
- Control control = Control.FromHandle(handle);
-
- if (control == null)
- return;
-
- if (balloon_window != null) {
- balloon_window.Close ();
- balloon_window.Dispose ();
- }
-
- balloon_window = new NotifyIcon.BalloonWindow (handle);
- balloon_window.Title = title;
- balloon_window.Text = text;
- balloon_window.Timeout = timeout;
- balloon_window.Show ();
-
+ ThemeEngine.Current.ShowBalloonWindow (handle, timeout, title, text, icon);
SendMessage(handle, Msg.WM_USER, IntPtr.Zero, (IntPtr) Msg.NIN_BALLOONSHOW);
}
#endif