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;
5 namespace Aga.Controls.Tree
7 internal class InputWithControl: NormalInputState
9 public InputWithControl(TreeViewAdv tree): base(tree)
13 protected override void DoMouseOperation(TreeNodeAdvMouseEventArgs args)
15 if (Tree.SelectionMode == TreeSelectionMode.Single)
17 base.DoMouseOperation(args);
19 else if (CanSelect(args.Node))
21 args.Node.IsSelected = !args.Node.IsSelected;
22 Tree.SelectionStart = args.Node;
26 protected override void MouseDownAtEmptySpace(TreeNodeAdvMouseEventArgs args)