[Mono-osx] SysTray Compatibility

neilt neilt at illinois.edu
Fri Dec 21 21:52:00 UTC 2012


I'm trying to write an app that uses the system tray, that can be used on
Windows and Mac. I've checked compatibility with MoMa and it comes out fine.
I've run it in Mono in Windows fine, but on OSX it errors out with the
following.

Unhandled Exception:
System.NotImplementedException: The requested feature is not implemented.
  at System.Windows.Forms.XplatUICarbon.SystrayAdd (IntPtr hwnd,
System.String tip, System.Drawing.Icon icon, System.Windows.Forms.ToolTip&
tt) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUI.SystrayAdd (IntPtr handle, System.String
tip, System.Drawing.Icon icon, System.Windows.Forms.ToolTip& tt) [0x00000]
in <filename unknown>:0 
  at System.Windows.Forms.NotifyIcon.ShowSystray () [0x00000] in <filename
unknown>:0 
  at System.Windows.Forms.NotifyIcon.set_Visible (Boolean value) [0x00000]
in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.NotifyIcon:set_Visible (bool)
  at SystrayTest.Form1.InitializeComponent () [0x00000] in <filename
unknown>:0 
  at SystrayTest.Form1..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) SystrayTest.Form1:.ctor ()
  at SystrayTest.Program.Main () [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NotImplementedException: The
requested feature is not implemented.
  at System.Windows.Forms.XplatUICarbon.SystrayAdd (IntPtr hwnd,
System.String tip, System.Drawing.Icon icon, System.Windows.Forms.ToolTip&
tt) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUI.SystrayAdd (IntPtr handle, System.String
tip, System.Drawing.Icon icon, System.Windows.Forms.ToolTip& tt) [0x00000]
in <filename unknown>:0 
  at System.Windows.Forms.NotifyIcon.ShowSystray () [0x00000] in <filename
unknown>:0 
  at System.Windows.Forms.NotifyIcon.set_Visible (Boolean value) [0x00000]
in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.NotifyIcon:set_Visible (bool)
  at SystrayTest.Form1.InitializeComponent () [0x00000] in <filename
unknown>:0 
  at SystrayTest.Form1..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) SystrayTest.Form1:.ctor ()
  at SystrayTest.Program.Main () [0x00000] in <filename unknown>:0 

I'm assuming regardless of what MoMa says that the System Tray is not
supported. How is this normally handled. Is this not possible with a native
windows app, and needs to be GTK# or something?



--
View this message in context: http://mono.1490590.n4.nabble.com/SysTray-Compatibility-tp4657850.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list