protected override void OnMouseLeave(EventArgs e) { mCtlState = CtlState.Normal; StopAutorepeat(); Invalidate(); base.OnMouseLeave(e); }
protected override void OnMouseUp(MouseEventArgs mevent) { mCtlState = CtlState.Hover; StopAutorepeat(); Invalidate(); base.OnMouseUp(mevent); }
protected override void OnMouseLeave(EventArgs e) { base.OnMouseLeave(e); if (!this.Focused) { this.ctlState_0 = CtlState.LostFocused; base.Invalidate(false); } }
public ctlAnchorable() { mCtlState = CtlState.Normal; InitializeComponent(); mGapx = 5; mGapy = 5; mAnchorHoriz = AnchorTypes.None; mAnchorVert = AnchorTypes.None; }
protected override void OnMouseDown(MouseEventArgs mevent) { mCtlState = CtlState.Pressed; if ((mAuturepTimer != null) && (!mAuturepTimer.Enabled)) { StartAutorepeat(mevent); } Invalidate(); base.OnMouseDown(mevent); }
public ctlAnchorable() { mCtlState = CtlState.Normal; InitializeComponent(); mGapx = 5; mGapy = 5; mAnchorHoriz = AnchorTypes.None; mAnchorVert = AnchorTypes.None; mAutorepeatInitial = 0; mAutorepeatPeriod = 100; }
protected override void OnMouseDown(MouseEventArgs mevent) { if (mevent.Button != System.Windows.Forms.MouseButtons.Left) { return; } mCtlState = CtlState.Pressed; if ((mAuturepTimer != null) && (!mAuturepTimer.Enabled)) { StartAutorepeat(mevent); } Invalidate(); base.OnMouseDown(mevent); }
/*设置空间状态*/ private void SetControlState(CtlState state) { switch (state) { case CtlState.audit: //pnAuditCheck.Visible = true; //pnAuditFilter.Visible = true; pnAuditTrial.Show(); pnDevice.Hide(); pnSource.Hide(); break; default: pnAuditCheck.Visible = false; pnAuditFilter.Visible = false; pnDevice.Visible = true; pnSource.Visible = true; break; } }
protected override void OnMouseEnter(EventArgs e) { mCtlState = CtlState.Hover; Invalidate(); base.OnMouseEnter(e); }
protected override void OnMouseLeave(EventArgs e) { base.OnMouseLeave(e); this.ctlState_0 = CtlState.Normal; base.Invalidate(false); }
protected override void OnMouseEnter(EventArgs e) { base.OnMouseEnter(e); this.ctlState_0 = CtlState.MouseEnter; base.Invalidate(false); }
protected override void OnMouseDown(MouseEventArgs mevent) { mCtlState = CtlState.Pressed; Invalidate(); base.OnMouseDown(mevent); }
protected override void OnMouseDown(MouseEventArgs mevent) { mCtlState = CtlState.Pressed; if ((mAuturepTimer != null) && (!mAuturepTimer.Enabled)) StartAutorepeat(mevent); Invalidate(); base.OnMouseDown(mevent); }
protected override void OnMouseDown(MouseEventArgs mevent) { if (mevent.Button != System.Windows.Forms.MouseButtons.Left) return; mCtlState = CtlState.Pressed; if ((mAuturepTimer != null) && (!mAuturepTimer.Enabled)) StartAutorepeat(mevent); Invalidate(); base.OnMouseDown(mevent); }