protected override void OnMouseDown(MouseEventArgs e) { base.OnMouseDown(e); if (m_IsEdit) { if (m_TagetKeta >= m_NumKeta) { if (SetValue(0)) { this.Invalidate(); } } else if (m_TagetKeta >= 0) { if (e.Y < this.Height / 2) { m_IsPushed = ISPUSHED.UP; } else { m_IsPushed = ISPUSHED.Down; } ValueKetaSet(); this.Invalidate(); } } }
protected override void OnMouseLeave(EventArgs e) { base.OnMouseLeave(e); if (m_IsEdit) { m_IsPushed = ISPUSHED.None; this.Invalidate(); } }
protected override void OnMouseEnter(EventArgs e) { base.OnMouseEnter(e); if (m_IsEdit) { m_IsPushed = ISPUSHED.Draw; this.Invalidate(); } }
protected override void OnMouseDown(MouseEventArgs e) { base.OnMouseDown(e); if (m_IsEdit) { int x = e.X - (this.Width - m_ArrowWidth); if (x > 0) { if (e.Y < this.Height / 2) { m_IsPushed = ISPUSHED.UP; ValuePlus(); } else { m_IsPushed = ISPUSHED.Down; ValueMinus(); } } this.Invalidate(); } }