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; }
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); }
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); }
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); }
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); }
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; }
void ShowPopover () { if (popover != null) popover.Destroy (); popover = new TooltipPopoverWindow { ShowArrow = true, Text = message, Severity = severity }; popover.ShowPopup ((Gtk.Widget)this.Surface.NativeWidget, popupPosition); }
void ShowTooltip () { if (!string.IsNullOrEmpty (tip)) { HideTooltip (); tooltipWindow = new TooltipPopoverWindow (); tooltipWindow.ShowArrow = true; tooltipWindow.Text = tip; tooltipWindow.ShowPopup (box, PopupPosition.Top); } }