Ejemplo n.º 1
0
 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();
         }
     }
 }
Ejemplo n.º 2
0
 protected override void OnMouseLeave(EventArgs e)
 {
     base.OnMouseLeave(e);
     if (m_IsEdit)
     {
         m_IsPushed = ISPUSHED.None;
         this.Invalidate();
     }
 }
Ejemplo n.º 3
0
 protected override void OnMouseEnter(EventArgs e)
 {
     base.OnMouseEnter(e);
     if (m_IsEdit)
     {
         m_IsPushed = ISPUSHED.Draw;
         this.Invalidate();
     }
 }
Ejemplo n.º 4
0
        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();
            }
        }