コード例 #1
0
		bool ShowTooltip ()
		{
			if (!string.IsNullOrEmpty (tip)) {
				HideTooltip ();
				tooltipWindow = new TooltipPopoverWindow ();
				tooltipWindow.ShowArrow = true;
				tooltipWindow.Text = tip;
				tooltipWindow.Severity = Severity;
				var rect = new Gdk.Rectangle (0, 0, eventBox.Allocation.Width, eventBox.Allocation.Height + 5);
				tooltipWindow.ShowPopup (eventBox, rect, Position);
			}
			return false;
		}
コード例 #2
0
 void ShowPopover()
 {
     if (popover != null)
     {
         popover.Destroy();
     }
     popover           = TooltipPopoverWindow.Create(!WorkaroundNestedDialogFlickering());
     popover.ShowArrow = true;
     if (markup)
     {
         popover.Markup = message;
     }
     else
     {
         popover.Text = message;
     }
     popover.Severity = severity;
     popover.ShowPopup(this, popupPosition);
 }
コード例 #3
0
ファイル: XwtBoxTooltip.cs プロジェクト: noah1510/dotdevelop
 public bool ShowTooltip()
 {
     if (hideTooltipTimer?.Enabled == true)
     {
         hideTooltipTimer.Stop();
     }
     if (!string.IsNullOrEmpty(tip))
     {
         var rect = new Rectangle(0, 0, Content.Size.Width, Content.Size.Height);
         if (tooltipWindow != null)
         {
             tooltipWindow.ShowPopup(Content, rect, Position);
         }
         if (xwtPopover != null)
         {
             xwtPopover.Show(GetXwtPosition(Position), Content, rect);
         }
     }
     return(false);
 }
コード例 #4
0
 bool ShowTooltip()
 {
     if (!string.IsNullOrEmpty(tip))
     {
         HideTooltip();
         tooltipWindow           = TooltipPopoverWindow.Create();
         tooltipWindow.ShowArrow = true;
         if (UseMarkup)
         {
             tooltipWindow.Markup = tip;
         }
         else
         {
             tooltipWindow.Text = tip;
         }
         tooltipWindow.Severity = Severity;
         var rect = new Gdk.Rectangle(0, 0, eventBox.Allocation.Width, eventBox.Allocation.Height + 5);
         tooltipWindow.ShowPopup(eventBox, rect, Position);
     }
     return(false);
 }
コード例 #5
0
 void ShowPopover()
 {
     if (hideTooltipTimer?.Enabled == true)
     {
         hideTooltipTimer.Stop();
     }
     if (popover == null)
     {
         popover = TooltipPopoverWindow.Create(!WorkaroundNestedDialogFlickering());
     }
     popover.ShowArrow = true;
     if (markup)
     {
         popover.Markup = message;
     }
     else
     {
         popover.Text = message;
     }
     popover.Severity = severity;
     popover.ShowPopup(this, popupPosition);
 }
コード例 #6
0
ファイル: StatusArea.cs プロジェクト: Kalnor/monodevelop
            bool ShowTooltipEvent()
            {
                tipShowTimeoutId = 0;

                if (!mouseOver)
                    return false;

                int remainingMs = (int) (scheduledTipTime - DateTime.Now).TotalMilliseconds;
                if (remainingMs > 50) {
                    // Still some significant time left. Re-schedule the timer
                    tipShowTimeoutId = GLib.Timeout.Add ((uint) remainingMs, ShowTooltipEvent);
                    return false;
                }

                if (!string.IsNullOrEmpty (tip)) {
                    HideTooltip ();
                    tooltipWindow = new TooltipPopoverWindow ();
                    tooltipWindow.ShowArrow = true;
                    tooltipWindow.Text = tip;
                    tooltipWindow.ShowPopup (box, PopupPosition.Top);
                }
                return false;
            }
コード例 #7
0
		void ShowPopover ()
		{
			if (popover != null)
				popover.Destroy ();
			popover = new TooltipPopoverWindow {
				ShowArrow = true,
				Text = message,
				Severity = severity
			};
			popover.ShowPopup ((Gtk.Widget)this.Surface.NativeWidget, popupPosition);
		}
コード例 #8
0
			void ShowTooltip ()
			{
				if (!string.IsNullOrEmpty (tip)) {
					HideTooltip ();
					tooltipWindow = new TooltipPopoverWindow ();
					tooltipWindow.ShowArrow = true;
					tooltipWindow.Text = tip;
					tooltipWindow.ShowPopup (box, PopupPosition.Top);
				}
			}