Example #1
0
 private void CreateTooltipWindows()
 {
     window               = new SuperToolTipWindow();
     window.MouseLeave   += OnToolTipMouseLeave;
     winData              = new SuperToolTipWindowData();
     winData.SizeChanged += OnWindowSizeChanged;
     window.Controls.Add(winData);
 }
Example #2
0
 private void CloseTooltip()
 {
     // Since we reuse one actual tooltip window, closing the tooltip involves
     // hiding the window and resetting the internal control that actually
     // displays the data.
     fadingTimer.Stop();
     window.Hide();
     winData.SizeChanged -= OnWinDataSizeChanged;
     window.Controls.Remove(winData);
     winData.Dispose();
     winData = null;
     CreateOrInitTooltipWindow();
 }
Example #3
0
 private void CreateOrInitTooltipWindow()
 {
     // We reuse the same window for the lifetime of the SuperToolTip object.
     // So, create the window the first time this method is called, and hook
     // in the event handlers it needs, including the one for Linux/Mono.
     if (window == null)
     {
         window             = new SuperToolTipWindow();
         window.MouseLeave += OnToolTipMouseLeave;
         if (SIL.PlatformUtilities.Platform.IsLinux)
         {
             window.SizeChanged += CheckSizeChange;
         }
     }
     // Initialize a new data control to display the next tooltip when the
     // time comes.  This simplifies getting the right tooltip size each
     // time it gets displayed.
     winData              = new SuperToolTipWindowData();
     winData.SizeChanged += OnWinDataSizeChanged;
     window.Controls.Add(winData);
 }
Example #4
0
		private void CreateTooltipWindows()
		{
			window = new SuperToolTipWindow();
			window.MouseLeave += OnToolTipMouseLeave;
			winData = new SuperToolTipWindowData();
			winData.SizeChanged += OnWindowSizeChanged;
			window.Controls.Add(winData);
		}