protected override void OnMouseEnter(EventArgs e)
 {
     if (((base.ParentInternal != null) && base.ParentInternal.MenuAutoExpand) && this.Selected)
     {
         MenuTimer.Cancel(this);
         MenuTimer.Start(this);
     }
     base.OnMouseEnter(e);
 }
 protected override void OnDropDownShow(EventArgs e)
 {
     MenuTimer.Cancel(this);
     if (base.ParentInternal != null)
     {
         base.ParentInternal.MenuAutoExpand = true;
     }
     base.OnDropDownShow(e);
 }
Esempio n. 3
0
 internal override void AutoHide(ToolStripItem otherItemBeingSelected)
 {
     if (IsOnDropDown)
     {
         MenuTimer.Transition(this, otherItemBeingSelected as ToolStripMenuItem);
     }
     else
     {
         base.AutoHide(otherItemBeingSelected);
     }
 }
 protected override void OnMouseLeave(EventArgs e)
 {
     MenuTimer.Cancel(this);
     base.OnMouseLeave(e);
 }
 protected override void OnMouseDown(MouseEventArgs e)
 {
     MenuTimer.Cancel(this);
     this.OnMouseButtonStateChange(e, true);
 }
 protected override void OnDropDownHide(EventArgs e)
 {
     MenuTimer.Cancel(this);
     base.OnDropDownHide(e);
 }