public ReorderColumnState(TreeViewAdv tree, TreeColumn column, Point initialMouseLocation)
			: base(tree, column)
		{
			_location = new Point(initialMouseLocation.X + Tree.OffsetX, 0);
			_dragOffset = tree.GetColumnX(column) - initialMouseLocation.X;
			_ghostImage = column.CreateGhostImage(new Rectangle(0, 0, column.Width, tree.ColumnHeaderHeight), tree.Font);
		}
Ejemplo n.º 2
0
 public ReorderColumnState(TreeViewAdv tree, TreeColumn column, Point initialMouseLocation)
     : base(tree, column)
 {
     _location   = new Point(initialMouseLocation.X + Tree.OffsetX, 0);
     _dragOffset = tree.GetColumnX(column) - initialMouseLocation.X;
     _ghostImage = column.CreateGhostImage(new Rectangle(0, 0, column.Width, tree.ColumnHeaderHeight), tree.Font);
 }
 public AutoRowHeightLayout(TreeViewAdv treeView, int rowHeight)
 {
     _rowCache                = new List <Rectangle>();
     _treeView                = treeView;
     PreferredRowHeight       = rowHeight;
     _measureContext          = new DrawContext();
     _measureContext.Graphics = Graphics.FromImage(new Bitmap(1, 1));
 }
 public AutoRowHeightLayout(TreeViewAdv treeView, int rowHeight)
 {
     _rowCache = new List<Rectangle>();
     _treeView = treeView;
     PreferredRowHeight = rowHeight;
     _measureContext = new DrawContext();
     _measureContext.Graphics = Graphics.FromImage(new Bitmap(1, 1));
 }
Ejemplo n.º 5
0
 internal TreeNodeAdv(TreeViewAdv tree, object tag)
 {
     _row      = -1;
     _tree     = tree;
     _nodes    = new NodeCollection(this);
     _children = new ReadOnlyCollection <TreeNodeAdv>(_nodes);
     _tag      = tag;
 }
 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 ClickColumnState(TreeViewAdv tree, TreeColumn column, Point location)
			: base(tree, column)
		{
			_location = location;
		}
 public IncrementalSearch(TreeViewAdv tree)
 {
     _tree = tree;
 }
Ejemplo n.º 9
0
 public ColumnState(TreeViewAdv tree, TreeColumn column)
     : base(tree)
 {
     _column = column;
 }
 public ModSelectionColumnsInfo(TreeViewAdv treeViewAdv)
 {
     FromTreeViewAdv(treeViewAdv);
 }
Ejemplo n.º 11
0
 public InputState(TreeViewAdv tree)
 {
     _tree = tree;
 }
 public InputWithShift(TreeViewAdv tree) : base(tree)
 {
 }
 public ResizeColumnState(TreeViewAdv tree, TreeColumn column, Point p)
     : base(tree, column)
 {
     _initLocation = p;
     _initWidth = column.Width;
 }
 public InputWithControl(TreeViewAdv tree) : base(tree)
 {
 }
Ejemplo n.º 15
0
 public ResizeColumnState(TreeViewAdv tree, TreeColumn column, Point p)
     : base(tree, column)
 {
     _initLocation = p;
     _initWidth    = column.Width;
 }
 public void ToTreeViewAdv(TreeViewAdv treeViewAdv)
 {
     TreeViewAdvColumnHelper.ColumnsToTreeViewAdv(treeViewAdv, Columns);
 }
 public void FromTreeViewAdv(TreeViewAdv treeViewAdv)
 {
     Columns = TreeViewAdvColumnHelper.GetColumnData(treeViewAdv);
 }
Ejemplo n.º 18
0
		public ColumnState(TreeViewAdv tree, TreeColumn column)
			: base(tree)
		{
			_column = column;
		}
Ejemplo n.º 19
0
 public InputWithControl(TreeViewAdv tree) : base(tree)
 {
 }
		public FixedRowHeightLayout(TreeViewAdv treeView, int rowHeight)
		{
			_treeView = treeView;
			PreferredRowHeight = rowHeight;
		}
Ejemplo n.º 21
0
		public InputState(TreeViewAdv tree)
		{
			_tree = tree;
		}
Ejemplo n.º 22
0
 public NormalInputState(TreeViewAdv tree) : base(tree)
 {
 }
 public ClickColumnState(TreeViewAdv tree, TreeColumn column, Point location)
     : base(tree, column)
 {
     _location = location;
 }
 public NormalInputState(TreeViewAdv tree) : base(tree)
 {
 }
Ejemplo n.º 25
0
 public InputWithShift(TreeViewAdv tree) : base(tree)
 {
 }
 public IncrementalSearch(TreeViewAdv tree)
 {
     _tree = tree;
 }
 public TreeColumnCollection(TreeViewAdv treeView)
 {
     _treeView = treeView;
 }
Ejemplo n.º 28
0
 public FixedRowHeightLayout(TreeViewAdv treeView, int rowHeight)
 {
     _treeView          = treeView;
     PreferredRowHeight = rowHeight;
 }