https://bugzilla.novell.com/show_bug.cgi?id=348233
Summary: X11: NotifyIcon text is drawn too large
Product: Mono: Class Libraries
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: P5 - None
Component: Windows.Forms
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
Found By: ---
The text shown on the systray with a NotifyIcon is drawn larger than it is on
windows.
------- sample ----------
using System;
using System.Drawing;
using System.Windows.Forms;
namespace IconTest {
class Test {
public static void Main () {
Font font = new Font (FontFamily.GenericSansSerif, 7);
NotifyIcon notify = new NotifyIcon ();
Bitmap bmp = new Bitmap (16, 16);
using (Graphics g = Graphics.FromImage (bmp)) {
Brush brush = new SolidBrush (Color.Black);
g.DrawString ("Big", font, brush, 0, 0);
brush.Dispose ();
}
notify.Visible = true;
notify.Icon = Icon.FromHandle (bmp.GetHicon());
Application.Run();
}
}
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs