Changed the system tray icon font scaling to adapt to the size of the tray icon in pixels, because on Windows 7 the tray icon scales with the system font size, while on Windows XP the tray icons are always 16 pixels large.
     2 using System.Collections.Generic;
 
     4 using System.Windows.Forms;
 
     6 using Aga.Controls.Tree.NodeControls;
 
     8 namespace Aga.Controls.Tree
 
    10 	public struct EditorContext
 
    12 		private TreeNodeAdv _currentNode;
 
    13 		public TreeNodeAdv CurrentNode
 
    15 			get { return _currentNode; }
 
    16 			set { _currentNode = value; }
 
    19 		private Control _editor;
 
    22 			get { return _editor; }
 
    23 			set { _editor = value; }
 
    26 		private NodeControl _owner;
 
    27 		public NodeControl Owner
 
    29 			get { return _owner; }
 
    30 			set { _owner = value; }
 
    33 		private Rectangle _bounds;
 
    34 		public Rectangle Bounds
 
    36 			get { return _bounds; }
 
    37 			set { _bounds = value; }
 
    40 		private DrawContext _drawContext;
 
    41 		public DrawContext DrawContext
 
    43 			get { return _drawContext; }
 
    44 			set { _drawContext = value; }