void mouseIdle_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
        {
            if (CustomTooltipDisabled)
            {
                return;
            }

            // Setup the super tooltip.
            tooltip.SetSuperTooltip(this, null);

            if (currentNode == null)
            {
                return;
            }

            if (currentNode.InfoEntries.Length < 1)
            {
                return;
            }

            SuperTooltipInfo info = currentNode.InfoEntries[0].NodeType.GetTooltip(currentNode.InfoEntries[0]);

            if (info != null)
            {
                UseInternalTooltips = false;

                // Set and display the tooltip.
                tooltip.SetSuperTooltip(this, info);
                tooltip.ShowTooltip(this, MousePosition);
            }
        }
Beispiel #2
0
		private void listErrors_ItemMouseHover(object sender, ListViewItemMouseHoverEventArgs e)
		{
			string footer = "";

			if (e.Item.SubItems.Count > 2)
			{
				footer = string.Format("Line {0}, column {1}", e.Item.SubItems[2].Text, e.Item.SubItems[3].Text);
			}
			var sti = new SuperTooltipInfo(e.Item.Text, footer, e.Item.SubItems[1].Text, imageList32.Images[2], null, eTooltipColor.Office2003);
			SuperTooltipErrors.SetSuperTooltip(listErrors, sti);
			SuperTooltipErrors.ShowTooltip(listErrors, new Point(Cursor.Position.X + 5, Cursor.Position.Y + 15));
		}