Bug 141689. Windows: change mouse handler for notifyicon to mouse down event.

This commit is contained in:
Jim Norman 2006-02-21 23:25:34 +00:00
parent 78c518040b
commit 08966d2f82
2 changed files with 17 additions and 7 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Feb 21 16:25:20 MST 2006 - jnorman@novell.com
- Bug 141689. Windows: change mouse handler for notifyicon to mouse
down event.
- Bug: Windows, start service at post install.
-------------------------------------------------------------------
Mon Feb 21 12:22:17 MST 2006 - jnorman@novell.com
- Bug 141651. On windows, uninstalls will kill CASAManager too.

View File

@ -71,7 +71,8 @@ namespace Novell.CASA.GUI
notifyIcon = new System.Windows.Forms.NotifyIcon();
try
{
s = File.OpenRead("../images/CASAIcons.ico");
//s = File.OpenRead("../images/CASAIcons.ico");
s = File.OpenRead("D:/brandi/Client/App.ico");
m_iconNormal = new System.Drawing.Icon(s);
notifyIcon.Icon = m_iconNormal;
}
@ -114,7 +115,8 @@ namespace Novell.CASA.GUI
}
//notifyIcon.Click +=new EventHandler(notifyIcon_Click);
notifyIcon.DoubleClick +=new EventHandler(notifyIcon_DoubleClick);
notifyIcon.MouseUp +=new System.Windows.Forms.MouseEventHandler(notifyIcon_MouseUp);
notifyIcon.MouseDown += new System.Windows.Forms.MouseEventHandler(notifyIcon_MouseDown);
notifyIcon.Visible = true;
UpdateTrayIcon(MiCASAStore.IsLocked());
@ -238,11 +240,13 @@ namespace Novell.CASA.GUI
Application.Quit(); // quits the application when the users clicks the popup menu
}
#if W32
private void notifyIcon_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
private void notifyIcon_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if (e.Button == System.Windows.Forms.MouseButtons.Right)
ShowContextMenu();
}
#endif
public void CasaManagerQuit()