mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
3a9a6e8305
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4764 21ef857c-d57f-4fe0-8362-d861dc6d29cd
46 lines
1001 B
C#
46 lines
1001 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)
|
|
{
|
|
this.Tree.Input = new ReorderColumnState(this.Tree, this.Column, args.Location);
|
|
this.Tree.UpdateView();
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
public override void MouseUp(TreeNodeAdvMouseEventArgs args)
|
|
{
|
|
this.Tree.ChangeInput();
|
|
this.Tree.UpdateView();
|
|
this.Tree.OnColumnClicked(this.Column);
|
|
}
|
|
}
|
|
}
|