Now calling display init. Not getting the expected error code though.
2 using System.Collections.Generic;
4 using System.Windows.Forms;
5 using System.Security.Permissions;
8 namespace Aga.Controls.Tree
10 internal class ResizeColumnState: ColumnState
12 private Point _initLocation;
13 private int _initWidth;
15 public ResizeColumnState(TreeViewAdv tree, TreeColumn column, Point p)
19 _initWidth = column.Width;
22 public override void KeyDown(KeyEventArgs args)
25 if (args.KeyCode == Keys.Escape)
29 public override void MouseDown(TreeNodeAdvMouseEventArgs args)
33 public override void MouseUp(TreeNodeAdvMouseEventArgs args)
38 private void FinishResize()
42 Tree.OnColumnWidthChanged(Column);
45 public override bool MouseMove(MouseEventArgs args)
47 Column.Width = _initWidth + args.Location.X - _initLocation.X;
52 public override void MouseDoubleClick(TreeNodeAdvMouseEventArgs args)
54 Tree.AutoSizeColumn(Column);