Example #1
0
        private TreeNodeAdvMouseEventArgs CreateMouseArgs(MouseEventArgs e)
        {
            TreeNodeAdvMouseEventArgs args = new TreeNodeAdvMouseEventArgs(e)
            {
                ViewLocation = new Point(e.X + OffsetX,
                                         e.Y + _rowLayout.GetRowBounds(FirstVisibleRow).Y - ColumnHeaderHeight),
                ModifierKeys = ModifierKeys,
                Node         = GetNodeAt(e.Location)
            };
            NodeControlInfo info = GetNodeControlInfoAt(args.Node, e.Location);

            args.ControlBounds = info.Bounds;
            args.Control       = info.Control;
            args.JustGotFocus  = _justGotFocus;
            return(args);
        }
Example #2
0
        public TreeNodeAdv GetNodeAt(Point point)
        {
            NodeControlInfo info = GetNodeControlInfoAt(point);

            return(info.Node);
        }