示例#1
0
 /// <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);
     }
 }
示例#2
0
 private void OnHoverChanged()
 {
     m_Label.Redraw();
     if (!IsHovered)
     {
         ToolTip.Disable(this);
     }
 }
示例#3
0
 public void RemoveTooltip(ControlBase control)
 {
     if (control == null)
     {
         control = this;
     }
     ToolTip.Disable(control);
     control.Tooltip = null;
 }
示例#4
0
 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);
     }
 }