Beispiel #1
0
 string IToolTipProvider.GetToolTip(TreeNodeAdv node, NodeControl nodeControl)
 {
     if (nodeControl is IToolTipProvider)
     {
         IToolTipProvider controlProvider = nodeControl as IToolTipProvider;
         return(controlProvider.GetToolTip(node, nodeControl));
     }
     return(null);
 }
Beispiel #2
0
        public string GetToolTip()
        {
            IToolTipProvider toolTipProvider = this.Parent as IToolTipProvider;

            if (toolTipProvider != null)
            {
                return(toolTipProvider.GetToolTip());
            }
            return(string.Empty);
        }
Beispiel #3
0
 void OnToolTipRequest(object sender, ToolTipRequestEventArgs e)
 {
     if (e.InDocument && !e.ToolTipShown)
     {
         try
         {
             string toolTipText = FToolTipProvider.GetToolTip(Document, e.LogicalPosition);
             if (toolTipText != null)
             {
                 e.ShowToolTip(toolTipText);
             }
         }
         catch (Exception)
         {
             // Ignore
         }
     }
 }