Example #1
0
 void HideTooltip()
 {
     if (tooltipWindow != null)
     {
         tooltipWindow.Destroy();
         tooltipWindow = null;
     }
 }
Example #2
0
 bool ShowTooltip()
 {
     if (!string.IsNullOrEmpty(tip))
     {
         HideTooltip();
         tooltipWindow           = new MonoDevelop.Components.TooltipPopoverWindow();
         tooltipWindow.ShowArrow = true;
         tooltipWindow.Text      = tip;
         var rect = this.ScreenBounds;
         tooltipWindow.ShowPopup((Gtk.Widget)Xwt.Toolkit.CurrentEngine.GetNativeWidget(this),
                                 new Gdk.Rectangle((int)(ParentWindow.X - rect.X), (int)(ParentWindow.Y - rect.Y), (int)rect.Width, (int)rect.Height),
                                 MonoDevelop.Components.PopupPosition.Bottom);
     }
     return(false);
 }
			void HideTooltip ()
			{
				if (tooltipWindow != null) {
					tooltipWindow.Destroy ();
					tooltipWindow = null;
				}
			}
			bool ShowTooltip ()
			{
				if (!string.IsNullOrEmpty (tip)) {
					HideTooltip ();
					tooltipWindow = new MonoDevelop.Components.TooltipPopoverWindow ();
					tooltipWindow.ShowArrow = true;
					tooltipWindow.Text = tip;
					var rect = this.ScreenBounds;
					tooltipWindow.ShowPopup ((Gtk.Widget)Xwt.Toolkit.CurrentEngine.GetNativeWidget (this),
						new Gdk.Rectangle ((int)(ParentWindow.X - rect.X), (int)(ParentWindow.Y - rect.Y), (int)rect.Width, (int)rect.Height), 
						MonoDevelop.Components.PopupPosition.Bottom);
				}
				return false;
			}