[Mono-bugs] [Bug 348233] New: X11: NotifyIcon text is drawn too large

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Dec 12 18:21:33 EST 2007


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: mono-bugs at ximian.com
        ReportedBy: avidigal at novell.com
         QAContact: mono-bugs at ximian.com
          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.


More information about the mono-bugs mailing list