Exemple #1
0
 private void HideNodeTooltip()
 {
     if (m_LastMouseOverNode != null)
     {
         NodeSuperTooltipProvider sp = m_LastMouseOverNode.Tag as NodeSuperTooltipProvider;
         sp.Hide();
         m_LastMouseOverNode = null;
     }
 }
Exemple #2
0
        private void ShowNodeTooltip(TreeNode node)
        {
            if (node == null)
            {
                return;
            }

            NodeSuperTooltipProvider sp = node.Tag as NodeSuperTooltipProvider;

            sp.Show();
            m_LastMouseOverNode = node;
        }
Exemple #3
0
        private void Form1_Load(object sender, System.EventArgs e)
        {
            // Load SuperTooltip information for each node...
            TreeNode node = treeView1.Nodes[0];

            while (node != null)
            {
                // Creates wrapper to provide SuperTooltip control access to the node object
                NodeSuperTooltipProvider sp = new NodeSuperTooltipProvider(node);
                node.Tag = sp;
                // Assign the wrapper to SuperTooltip control together with information
                // about what to display on Super Tooltip for this node.
                superTooltip1.SetSuperTooltip(sp,
                                              new DevComponents.DotNetBar.SuperTooltipInfo("Header text for " + node.Text, "",
                                                                                           "Additional body text for this node. \n\r" + node.Text,
                                                                                           null, null, DevComponents.DotNetBar.eTooltipColor.Lemon));

                // Must expand node to get to the child nodes via NextVisibleNode
                node.Expand();
                node = node.NextVisibleNode;
            }
        }