/// <summary> /// Handler invoked on mouse click (left) event. /// </summary> /// <param name="x">X coordinate.</param> /// <param name="y">Y coordinate.</param> /// <param name="down">If set to <c>true</c> mouse button is down.</param> protected override void OnMouseClickedLeft(int x, int y, bool down) { if (!down && Tooltip != null && !Bounds.Contains(x, y)) { ToolTip.Disable(m_SliderBar); ToolTip.Disable(this); } }
private void OnHoverChanged() { m_Label.Redraw(); if (!IsHovered) { ToolTip.Disable(this); } }
public void RemoveTooltip(ControlBase control) { if (control == null) { control = this; } ToolTip.Disable(control); control.Tooltip = null; }
protected override void OnMouseClickedLeft(int x, int y, bool down) { base.OnMouseClickedLeft(x, y, down); if (!down && Tooltip != null && !Bounds.Contains(x, y)) { ToolTip.Disable(Parent); ToolTip.Disable(this); } }