Example #1
0
 public NodeControlInfo(NodeControl control, Rectangle bounds, TreeNodeAdv node)
 {
     _control = control;
     _bounds = bounds;
     _node = node;
 }
Example #2
0
        private void DisplayNodesTooltip(MouseEventArgs e)
        {
            if (ShowNodeToolTips)
            {
                TreeNodeAdvMouseEventArgs args = CreateMouseArgs(e);
                if (args.Node != null && args.Control != null)
                {
                    if (args.Node != _hotNode || args.Control != _hotControl)
                        SetTooltip(GetNodeToolTip(args));
                }
                else
                    _toolTip.SetToolTip(this, null);

                _hotControl = args.Control;
                _hotNode = args.Node;
            }
            else
                _toolTip.SetToolTip(this, null);
        }