Example #1
0
 /// <summary>
 /// 鼠标进入
 /// </summary>
 /// <param name="e"></param>
 protected override void OnMouseEnter(EventArgs e)
 {
     m_MouseState = LabelButtonMouseState.MouseEnter;
     DrawBorderLine(this.CreateGraphics());
     this.BackColor = m_MouseEnterColor;
     
     base.OnMouseEnter(e);
     this.Refresh();
 }
Example #2
0
        /// <summary>
        /// 鼠标进入
        /// </summary>
        /// <param name="e"></param>
        protected override void OnMouseEnter(EventArgs e)
        {
            m_MouseState = LabelButtonMouseState.MouseEnter;
            DrawBorderLine(this.CreateGraphics());
            this.BackColor = m_MouseEnterColor;

            base.OnMouseEnter(e);
            this.Refresh();
        }
Example #3
0
 /// <summary>
 /// 鼠标按下
 /// </summary>
 /// <param name="e"></param>
 protected override void OnMouseDown(MouseEventArgs e)
 {
     m_MouseState = LabelButtonMouseState.MouseDown;
     this.BackColor = m_MouseDownColor;
     base.OnMouseDown(e);
 }
Example #4
0
 /// <summary>
 /// 鼠标离开
 /// </summary>
 /// <param name="e"></param>
 protected override void OnMouseLeave(EventArgs e)
 {
     m_MouseState = LabelButtonMouseState.MouseLeaver;
     base.OnMouseLeave(e);
 }
Example #5
0
 /// <summary>
 /// 鼠标按下
 /// </summary>
 /// <param name="e"></param>
 protected override void OnMouseDown(MouseEventArgs e)
 {
     m_MouseState   = LabelButtonMouseState.MouseDown;
     this.BackColor = m_MouseDownColor;
     base.OnMouseDown(e);
 }
Example #6
0
 /// <summary>
 /// 鼠标离开
 /// </summary>
 /// <param name="e"></param>
 protected override void OnMouseLeave(EventArgs e)
 {
     m_MouseState = LabelButtonMouseState.MouseLeaver;
     base.OnMouseLeave(e);
 }