Esempio n. 1
0
 private void Form1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     if (PopupNotifierOld.CloseButton)
     {
         if (RectClose.Contains(e.X, e.Y))
         {
             bMouseOnClose = true;
         }
         else
         {
             bMouseOnClose = false;
         }
     }
     if (PopupNotifierOld.OptionsButton)
     {
         if (RectOptions.Contains(e.X, e.Y))
         {
             bMouseOnOptions = true;
         }
         else
         {
             bMouseOnOptions = false;
         }
     }
     if (RectText.Contains(e.X, e.Y))
     {
         bMouseOnLink = true;
     }
     else
     {
         bMouseOnLink = false;
     }
     Invalidate();
 }
Esempio n. 2
0
 private void Form_MouseUp(object Sender, MouseEventArgs e)
 {
     if (RectClose.Contains(e.X, e.Y))
     {
         CloseClick(this, EventArgs.Empty);
     }
     if (RectText.Contains(e.X, e.Y))
     {
         LinkClick(this, EventArgs.Empty);
     }
     if (RectOptions.Contains(e.X, e.Y))
     {
         if (Parent.OptionsMenu != null)
         {
             Parent.OptionsMenu.Show(this, new Point(RectOptions.Right - Parent.OptionsMenu.Width, RectOptions.Bottom));
             Parent.bShouldRemainVisible = true;
         }
     }
 }
Esempio n. 3
0
 private void Form1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     if (RectClose.Contains(e.X, e.Y))
     {
         OnCloseClick();
     }
     if (RectText.Contains(e.X, e.Y))
     {
         OnLinkClick();
     }
     if (RectOptions.Contains(e.X, e.Y))
     {
         if ((PopupNotifierOld.OptionsMenu != null))
         {
             PopupNotifierOld.OptionsMenu.Show(this, new Point(RectOptions.Right - PopupNotifierOld.OptionsMenu.Width, RectOptions.Bottom));
             PopupNotifierOld.bShouldRemainVisible = true;
         }
     }
 }
Esempio n. 4
0
        private void Form_MouseMove(object Sender, MouseEventArgs e)
        {
            if (Parent.CloseButton)
            {
                if (RectClose.Contains(e.X, e.Y))
                {
                    bMouseOnClose = true;
                }
                else
                {
                    bMouseOnClose = false;
                }
            }

            if (Parent.OptionsButton)
            {
                if (RectOptions.Contains(e.X, e.Y))
                {
                    bMouseOnOptions = true;
                }
                else
                {
                    bMouseOnOptions = false;
                }
            }

            if (RectText.Contains(e.X, e.Y))
            {
                bMouseOnLink = true;
            }
            else
            {
                bMouseOnLink = false;
            }

            Invalidate();
        }