Files
dmex b02427417c PH1.x: fixed build
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@5614 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2014-02-25 23:14:38 +00:00

46 lines
991 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
namespace Aga.Controls.Tree
{
internal class ClickColumnState : ColumnState
{
private Point _location;
public ClickColumnState(TreeViewAdv tree, TreeColumn column, Point location)
: base(tree, column)
{
_location = location;
}
public override void KeyDown(KeyEventArgs args)
{
}
public override void MouseDown(TreeNodeAdvMouseEventArgs args)
{
}
public override bool MouseMove(MouseEventArgs args)
{
if (TreeViewAdv.Dist(_location, args.Location) > TreeViewAdv.ItemDragSensivity
&& Tree.AllowColumnReorder)
{
Tree.Input = new ReorderColumnState(Tree, Column, args.Location);
Tree.UpdateView();
}
return true;
}
public override void MouseUp(TreeNodeAdvMouseEventArgs args)
{
Tree.ChangeInput();
Tree.UpdateView();
Tree.OnColumnClicked(Column);
}
}
}