Exemple #1
0
        public SuperToolTip ShowToolTip(ToolTipControllerGetActiveObjectInfoEventArgs e)
        {
            if (e.SelectedControl != this || ToolTipForNode == null)
            {
                return(null);
            }

            var hit = CalcHitInfo(e.ControlMousePosition);

            if (hit.HitInfoType != HitInfoType.Cell)
            {
                return(null);
            }

            var node = NodeFrom(hit.Node);

            if (node == null)
            {
                return(null);
            }

            var cellInfo = new TreeListCellToolTipInfo(hit.Node, hit.Column, null);
            var info     = new ToolTipControlInfo(cellInfo, string.Empty)
            {
                SuperTip = _toolTipMapper.MapFrom(ToolTipForNode(node))
            };

            e.Info = info;

            return(info.SuperTip);
        }
Exemple #2
0
 public SuperToolTip ToolTipFor(IEnumerable <ToolTipPart> toolTipParts)
 {
     return(_toolTipMapper.MapFrom(toolTipParts.ToList()));
 }