[Mono-bugs] [Bug 79900][Nor] Changed - NotifyIcon test problems: tool tip text has last character cut off
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Nov 16 00:23:24 EST 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by sanfordarmstrong at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=79900
--- shadow/79900 2006-11-15 22:40:15.000000000 -0500
+++ shadow/79900.tmp.21818 2006-11-16 00:23:24.000000000 -0500
@@ -66,6 +66,24 @@
Mono example
------- Additional Comments From toshok at ximian.com 2006-11-15 22:40 -------
The icon not displaying is actually due to bug #79176. updating the
summary and adding that bug as one this bug depends on.
+
+------- Additional Comments From sanfordarmstrong at gmail.com 2006-11-16 00:23 -------
+I've tried looking into this a little more, but I've gotten to the
+point where I am out of my depth. The problem seems to be with the
+XplatUIWin32 class, or something it is depending on. I've written a
+test that reproduces some code from that class and attempts to call
+Shell_NotifyIconW in the shell32.dll.
+
+My guesses:
+1) Something goes wrong importing that dll.
+2) The MarshalAs attribute on NOTIFYICONDATA.szTip isn't working right
+(everything works fine if I change szTip to a char[], marshal as
+ByValArray, and set SizeConst to length+1)
+
+Anyway, I'm attaching my test code in case it's useful. It creates a
+blank system tray entry with a tooltip of "hello" (truncated to
+"hell"). It runs for 10 seconds and then quits. It works fine with
+MS .NET. It is based on the code in XplatUIWin32.SystrayAdd.
More information about the mono-bugs
mailing list